videosphere
    Preparing search index...

    Function getAuthenticatedSessionUser

    • Reads the JWT session cookie from the request and returns the authenticated user profile including session fields such as totpEnabled. Returns null when the token is missing/invalid or the user no longer exists.

      Parameters

      • req: NextRequest

        The incoming request object.

      Returns Promise<SessionUser>

      The authenticated session user profile or null.