setAuthorizationFromToken method

void setAuthorizationFromToken(
  1. DescopeToken token
)

Sets the JWT from a DescopeToken as the Bearer Token value of the Authorization header field in the http.Request.

Implementation

void setAuthorizationFromToken(DescopeToken token) {
  headers['Authorization'] = 'Bearer ${token.jwt}';
}