Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
enum TokenResponse.Action
import { TokenResponse } from "https://deno.land/x/authlete_deno@v1.2.3/mod.ts";
const { Action } = TokenResponse;

The next action that the service implementation should take.

Members

BAD_REQUEST

The token request from the client was wrong. The service implementation should return '400 Bad Request' to the client application.

INTERNAL_SERVER_ERROR

The request from the service was wrong or an error occurred in Authlete. The service implementation should return '500 Internal Server Error' to the client application.

INVALID_CLIENT

Authentication of the client application failed. The service implementation should return either "400 Bad Request" or "401 Unauthorized" to the client application.

OK

The token request from the client was valid. The service implementation should return '200 OK' to the client application with an access token.

PASSWORD

The token request from the client application was valid and the grant type is password. The service implementation should validate the credentials of the resource owner and call Authlete /auth/token/issue API or /auth/token/fail API according to the result of the validation.