videosphere
    Preparing search index...

    Function getAuthenticatedSessionUserId

    • Reads the JWT session cookie from the request and returns the authenticated token subject id without loading the user profile.

      Parameters

      • req: NextRequest

        The incoming request object.

      Returns Promise<string>

      The JWT subject id when the token is valid; otherwise null.