auth-vir - v1.3.1
    Preparing search index...

    Function extractCookieJwt

    • Extract an auth cookie from a cookie string. Used in host (backend) code.

      Parameters

      • rawCookie: string
      • jwtParams: Readonly<ParseJwtParams>
      • cookieName: string = 'auth'

      Returns Promise<undefined | { csrfToken: string; userId: string }>

      The extracted auth Cookie JWT data or undefined if no valid auth JWT data was found.