prepareSso
Ce contenu n’est pas encore disponible dans votre langue.
prepareSso(
client,args):Promise<PrepareSsoReturnType>
Defined in: actions/prepareSso.ts:31
Ask the wallet iframe for an SSO URL without opening the popup, so the caller can inspect or extend it before opening it itself.
Parameters
Section titled “Parameters”client
Section titled “client”The current Frak Client
The SSO parameters
Returns
Section titled “Returns”Promise<PrepareSsoReturnType>
Object containing the generated ssoUrl
Example
Section titled “Example”const { ssoUrl } = await prepareSso(client, { metadata: { logoUrl: "..." }, directExit: true});await openSso(client, { metadata: { logoUrl: "..." }, ssoPopupUrl: `${ssoUrl}&tracking=abc123`,});Remarks
Section titled “Remarks”For most use cases, just use openSso() which handles URL generation automatically.
Only use prepareSso() when you need explicit control over the URL.