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
Parameters
Section titled “Parameters”walletUrl
Section titled “walletUrl”string
Base wallet URL (e.g., “https://wallet.frak.id”)
params
Section titled “params”SSO parameters
merchantId
Section titled “merchantId”string
Merchant identifier
string | undefined
Application name
clientId
Section titled “clientId”string
Client identifier for identity tracking
string
Optional custom CSS
Returns
Section titled “Returns”string
Complete SSO URL ready to open in popup or redirect
Example
Section titled “Example”const ssoUrl = generateSsoUrl( "https://wallet.frak.id", { metadata: { logoUrl: "..." }, directExit: true }, "0x123...", "My App");// Returns: https://wallet.frak.id/sso?p=<compressed_base64>