Skip to main content

Class: TokensApi

Types.TokensApi

Hierarchy

Constructors

constructor

new TokensApi(configuration?)

Parameters

NameTypeDefault value
configurationConfigurationDefaultConfig

Inherited from

BaseAPI.constructor

Methods

postTokenRevoke

postTokenRevoke(requestParameters, initOverrides?): Promise<void>

This endpoint revokes a SlashID user token. Revoke a user token

Parameters

NameType
requestParametersPostTokenRevokeRequest
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

NameType
requestParametersPostTokenRevokeRequest
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

NameType
requestParametersPostTokenValidateRequest
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

NameType
requestParametersPostTokenValidateRequest
initOverrides?RequestInit | InitOverrideFunction

Returns

Promise<ApiResponse<PostTokenValidate200Response>>


withMiddleware

withMiddleware<T>(this, ...middlewares): T

Type parameters

NameType
Textends BaseAPI<T>

Parameters

NameType
thisT
...middlewaresMiddleware[]

Returns

T

Inherited from

BaseAPI.withMiddleware


withPostMiddleware

withPostMiddleware<T>(this, ...postMiddlewares): T

Type parameters

NameType
Textends BaseAPI<T>

Parameters

NameType
thisT
...postMiddlewares(undefined | (context: ResponseContext) => Promise<void | Response>)[]

Returns

T

Inherited from

BaseAPI.withPostMiddleware


withPreMiddleware

withPreMiddleware<T>(this, ...preMiddlewares): T

Type parameters

NameType
Textends BaseAPI<T>

Parameters

NameType
thisT
...preMiddlewares(undefined | (context: RequestContext) => Promise<void | FetchParams>)[]

Returns

T

Inherited from

BaseAPI.withPreMiddleware