generateSsoUrl
generateSsoUrl(
walletUrl,params,merchantId,name,clientId,css?,proof?):string
Defined in: utils/sso/sso.ts:47
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 | undefined
Client identifier for identity tracking, omitted when the client could not derive one
string
Optional custom CSS
proof?
Section titled “proof?”string
Optional proof-of-possession for clientId (see signProof)
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>