import { TokenIssueResponse } from "https://deno.land/x/authlete_deno@v1.2.10/src/dto/token_issue_response.ts";
Enums
The next action that the service implementation should take. |
import { TokenIssueResponse } from "https://deno.land/x/authlete_deno@v1.2.10/src/dto/token_issue_response.ts";
Response from Authlete /auth/token/issue
API.
Properties
The newly issued access token. This property holds a valid value
only when the value of the action
property is TokenIssueResponse.Action.OK
.
If the service is configured to issue JWT-based access tokens,
a JWT-based access token is issued additionally. In the case,
the jwtAccessToken
property holds the JWT-based access token.
The authorization details.
This represents the value of the
authorization_details
request parameter which is defined in
"OAuth 2.0 Rich Authorization Requests".
The newly issued access token in JWT format.
If the authorization server is configured to issue JWT-based access
tokens (= if the service's accessTokenSignAlg
is set), a JWT-based
access token is issued along with the original random-string one.
Regarding the detailed format of the JWT-based access token, see
the description of the Service
class.
The extra properties associated with the access token. This property is unset when no extra property is associated with the issued access token.
The refresh token. This property holds a valid value only when
the action
property is TokenIssueResponse.Action.OK
and the
service supports the refresh token
flow.
If the service's refreshTokenKept
property is set to false
,
a new refresh token is issued and the old refresh token used in
the refresh token flow is invalidated. On the contrary, if the
it is set to true
, the refresh token itself is not refreshed.