Documentation Index Fetch the complete documentation index at: https://docs.authsignal.com/llms.txt
Use this file to discover all available pages before exploring further.
The Web SDK can be used to launch the pre-built UI .
const result = await authsignal . launch ( url , {
mode: "popup" ,
});
Parameters
The options used when launching the pre-built UI. How the pre-built UI should launch: popup will cause it to open in a overlay, whilst
redirect will trigger a full page redirect. If no value is supplied, mode defaults to
redirect.
Any valid CSS value for the width property.
Any valid CSS value for the height property. If not set, the popup will auto-adjust to
the height of the content.
Whether the popup is closable with the escape key and by clicking the backdrop.
Called when an unexpected API error occurs in the pre-built UI. Only available when mode is
popup. The error code returned by the API.
The HTTP status code of the failed request.
Response
When mode is set as popup it returns a Promise<TokenPayload> that resolves when the popup closes. The token that can be used to verify the outcome of the user action.
For more information on launching the pre-built UI see our detailed guide .