saasus-sdk / Auth/api / CredentialApi
Auth/api.CredentialApi
CredentialApi - object-oriented interface
Export
CredentialApi
-
↳
CredentialApi
• new CredentialApi(configuration?
, basePath?
, axios?
): CredentialApi
Name | Type | Default value |
---|---|---|
configuration? |
Configuration |
undefined |
basePath |
string |
BASE_PATH |
axios |
AxiosInstance |
globalAxios |
• Protected
axios: AxiosInstance
= globalAxios
• Protected
basePath: string
= BASE_PATH
• Protected
configuration: undefined
| Configuration
▸ createAuthCredentials(body?
, options?
): Promise
<AxiosResponse
<AuthorizationTempCode
, any
>>
Temporarily save the parameter for the ID token, access token, and refresh token and return a temporary code for obtaining. Temporary codes are valid for 10 seconds from issuance.
Name | Type | Description |
---|---|---|
body? |
Credentials |
|
options? |
AxiosRequestConfig <any > |
Override http request option. |
Promise
<AxiosResponse
<AuthorizationTempCode
, any
>>
Summary
Save Authentication/Authorization Information
Throws
Memberof
CredentialApi
src/generated/Auth/api.ts:3699
▸ getAuthCredentials(code?
, authFlow?
, refreshToken?
, options?
): Promise
<AxiosResponse
<Credentials
, any
>>
Get ID token, access token, and refresh token using a temporary code or a refresh token.
Name | Type | Description |
---|---|---|
code? |
string |
Temp Code |
authFlow? |
"tempCodeAuth" | "refreshTokenAuth" |
Authentication Flow tempCodeAuth: Getting authentication information using a temporary code refreshTokenAuth: Getting authentication information using a refresh token If not specified, it will be tempCodeAuth |
refreshToken? |
string |
Refresh Token |
options? |
AxiosRequestConfig <any > |
Override http request option. |
Promise
<AxiosResponse
<Credentials
, any
>>
Summary
Get Authentication/Authorization Information
Throws
Memberof
CredentialApi