Class: TokensApi
Types.TokensApi
Hierarchy
↳
TokensApi
Constructors
constructor
• new TokensApi(configuration?
)
Parameters
Name | Type | Default value |
---|---|---|
configuration | Configuration | DefaultConfig |
Inherited from
Methods
postTokenRevoke
▸ postTokenRevoke(requestParameters
, initOverrides?
): Promise
<void
>
This endpoint revokes a SlashID user token. Revoke a user token
Parameters
Name | Type |
---|---|
requestParameters | PostTokenRevokeRequest |
initOverrides? | RequestInit | InitOverrideFunction |
Returns
Promise
<void
>
postTokenRevokeRaw
▸ postTokenRevokeRaw(requestParameters
, initOverrides?
): Promise
<ApiResponse
<void
>>
This endpoint revokes a SlashID user token. Revoke a user token
Parameters
Name | Type |
---|---|
requestParameters | PostTokenRevokeRequest |
initOverrides? | RequestInit | InitOverrideFunction |
Returns
Promise
<ApiResponse
<void
>>
postTokenValidate
▸ postTokenValidate(requestParameters
, initOverrides?
): Promise
<PostTokenValidate200Response
>
This endpoint validates a SlashID user token. The response indicates whether the token is valid and its expiration time if so. If the token is not valid, the reason is returned. Validate a user token
Parameters
Name | Type |
---|---|
requestParameters | PostTokenValidateRequest |
initOverrides? | RequestInit | InitOverrideFunction |
Returns
Promise
<PostTokenValidate200Response
>
postTokenValidateRaw
▸ postTokenValidateRaw(requestParameters
, initOverrides?
): Promise
<ApiResponse
<PostTokenValidate200Response
>>
This endpoint validates a SlashID user token. The response indicates whether the token is valid and its expiration time if so. If the token is not valid, the reason is returned. Validate a user token
Parameters
Name | Type |
---|---|
requestParameters | PostTokenValidateRequest |
initOverrides? | RequestInit | InitOverrideFunction |
Returns
Promise
<ApiResponse
<PostTokenValidate200Response
>>
withMiddleware
▸ withMiddleware<T
>(this
, ...middlewares
): T
Type parameters
Name | Type |
---|---|
T | extends BaseAPI <T > |
Parameters
Name | Type |
---|---|
this | T |
...middlewares | Middleware [] |
Returns
T
Inherited from
withPostMiddleware
▸ withPostMiddleware<T
>(this
, ...postMiddlewares
): T
Type parameters
Name | Type |
---|---|
T | extends BaseAPI <T > |
Parameters
Name | Type |
---|---|
this | T |
...postMiddlewares | (undefined | (context : ResponseContext ) => Promise <void | Response >)[] |
Returns
T
Inherited from
withPreMiddleware
▸ withPreMiddleware<T
>(this
, ...preMiddlewares
): T
Type parameters
Name | Type |
---|---|
T | extends BaseAPI <T > |
Parameters
Name | Type |
---|---|
this | T |
...preMiddlewares | (undefined | (context : RequestContext ) => Promise <void | FetchParams >)[] |
Returns
T