AddAuthorization extension

on
  • Request

Methods

setAuthorization(DescopeSessionManager sessionManager) → void
Ensures that the active session in a DescopeSessionManager is valid and then sets its session JWT as the Bearer Token value of the Authorization header field in the http.Request.
setAuthorizationFromSession(DescopeSession session) → void
Sets the session JWT from a DescopeSession as the Bearer Token value of the Authorization header field in the http.Request.
setAuthorizationFromToken(DescopeToken token) → void
Sets the JWT from a DescopeToken as the Bearer Token value of the Authorization header field in the http.Request.