Variable: authLinks
The authLinks namespace contains all the functions related to authentication link operations. It can be accessed like this:constauthLinks:object=authLinksNamespace.authLinks
Type declaration
request()
request: (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.requestAuthLinkParams) =>Promise<AuthLinkRequestResult>
Parameters
requestAuthLinkParams
AuthLinkRequestParams
An object containing:
requestSettings: An object with theactionand an optionalcallbackUrlproperties (both string).operationSettings: An object with operation-level settings such asproxyRequestFunction(preferred over using the access token flow),accessToken,stagingToken, and other optional parameters. See AuthLinkRequestParams.
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.
Throws
AuthenticationError - If authentication fails (e.g., invalid or missing
access token).