Creates a JWT corresponding to the requested token type for the authenticated user.
The unique ID of the Dev user or the service account to impersonate.
The expected audience values with respect to the token.
An identifier that represents the application which is requesting the token. If no client_id is present in the request to generate an application access token (AAT), DevRev will generate a client_id. This client_id is only associated with an AAT.
The expected validity lifetime of the token in number of days. In practice, the value should be based on the usage of the token.
Specifies the process of obtaining a token.
The type of the requested token.
Carries info corresponding to the Rev user to be provisioned and/or issue a Rev session token.
The requested set of scopes associated with the issued token. A space-delimited list of values in which the order of values does not matter.
Represents the entity that requests the token. Not required when requesting an application access token (AAT).
The type of the subject token.
A hint that identifies the token.
The issued JSON Web Token (JWT) corresponding to the requested token type.
The validity lifetime of the token specified in seconds since Unix epoch.
The type of the issued token. Bearer is the only supported token type.
An identifier that represents the application which is requesting the token. Only present in a response corresponding to an application access token (AAT).
A token to refresh the issued token.
The scopes associated with the issued token. A space-delimited list of values in which the order of values does not matter.