Skip to content

generateSsoUrl

generateSsoUrl(walletUrl, params, merchantId, name, clientId, css?): string

Defined in: utils/sso/sso.ts:42

Generate SSO URL with compressed parameters This mirrors the wallet’s getOpenSsoLink() function

string

Base wallet URL (e.g., “https://wallet.frak.id”)

PrepareSsoParamsType

SSO parameters

string

Merchant identifier

string | undefined

Application name

string

Client identifier for identity tracking

string

Optional custom CSS

string

Complete SSO URL ready to open in popup or redirect

const ssoUrl = generateSsoUrl(
"https://wallet.frak.id",
{ metadata: { logoUrl: "..." }, directExit: true },
"0x123...",
"My App"
);
// Returns: https://wallet.frak.id/sso?p=<compressed_base64>