Function verifyTokenAndRefresh

  • Verifies the login token locally and refreshes the token if required.

    Returns

    [user, cookie | null]

    Throws

    if token invalid

    Parameters

    • token: string

      token

    • forceRefresh: boolean = false

      forces a refresh if the token is valid

    Returns Promise<[UserToken, LoginCookie | null]>

Generated using TypeDoc