AdminAuthResource
admin/auth.AdminAuthResource
Methods
createSession
createSession(payload
, customHeaders?
): ResponsePromise
<AdminAuthRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
Description
Creates an authenticated session
deleteSession
deleteSession(customHeaders?
): ResponsePromise
<void
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<void
>
Description
destroys an authenticated session
getSession
getSession(customHeaders?
): ResponsePromise
<AdminAuthRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
Description
Retrieves an authenticated session Usually used to check if authenticated session is alive.
getToken
getToken(payload
, customHeaders?
): ResponsePromise
<AdminBearerAuthRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminBearerAuthRes
>
Description
Retrieves a new JWT access token
Was this section helpful?