Function prepareFrontendLogin
- prepareFrontendLogin(
targetUrl: string,
userId: number,
options?: AuthTokenOptions,
): Promise<NavigateInstruction>Parameters
- targetUrl: string
URL to which we'll redirect after logging in and which will be used to extract WRDAuth settings
- userId: number
The user ID to generate a token for
Optionaloptions: AuthTokenOptionsOptions for token generation
Returns Promise<NavigateInstruction>
- targetUrl: string
Generate a navigation instruction to set an Id Token cookie. This API can be used to construct a "Login As" service