prepareFrontendLogin | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function prepareFrontendLogin

    • Generate a navigation instruction to set an Id Token cookie. This API can be used to construct a "Login As" service

      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: AuthTokenOptions

        Options for token generation

      Returns Promise<NavigateInstruction>