Checks whether the request carries a valid Auth.js session token, either in the session cookie or in an Authorization: Bearer header. A valid token returns the user type and tenant copied from the session JWT. No request body is read.
Header parameters
authorizationstringOptional
Optional Bearer token fallback. The route also accepts the Auth.js session token cookie.