Variable: authLinks
The authLinks namespace contains all the client-side functions related to authentication link operations. This version uses proxy-based authentication (proxyEndpointDescriptor) and is designed for browser environments. For server-side operations using access tokens, import from ‘@qonto/embed-sdk/server/auth-links’. It can be accessed like this:constauthLinks:object
Type declaration
request()
request: (Client-side implementation - Requests an authentication link for a specific action. Auth links allow loading embed features or performing Embed actions in a secure manner while still avoiding exposing the access token to the client side. This implementation uses a proxy-based flow (via proxyEndpointDescriptor), which is designed for client-side environments where access tokens should not be exposed.requestAuthLinkParams) =>Promise<AuthLinkRequestResult>
Parameters
requestAuthLinkParams
AuthLinkClientParams
An object containing:
requestSettings: An object with theactionand an optionalcallbackUrlproperties (both string).operationSettings: An object with operation-level settings. Must includeproxyEndpointDescriptor. See ClientOperationSettings.
Returns
Promise<AuthLinkRequestResult>
Promise resolving to the auth link details, which includes the URL
where the user should be redirected to perform the action, the requested action,
the callback URL if it was provided, the expiration time of the link, and the
time it was used.
Throws
InvalidParametersError - If the request settings are invalid or if
proxyEndpointDescriptor is not provided.
Example
See
For server-side implementation with accessToken, import from@qonto/embed-sdk/server/auth-links