Skip to main content

Class: AdminAuthResource

Hierarchy

  • default

    AdminAuthResource

Methods

createSession

createSession(payload, customHeaders?): ResponsePromise<AdminAuthRes>

Description

Creates an authenticated session

Parameters

NameType
payloadAdminPostAuthReq
customHeadersRecord<string, any>

Returns

ResponsePromise<AdminAuthRes>

Defined in

medusa-js/src/resources/admin/auth.ts:37


deleteSession

deleteSession(customHeaders?): ResponsePromise<void>

Description

destroys an authenticated session

Parameters

NameType
customHeadersRecord<string, any>

Returns

ResponsePromise<void>

Defined in

medusa-js/src/resources/admin/auth.ts:24


getSession

getSession(customHeaders?): ResponsePromise<AdminAuthRes>

Description

Retrieves an authenticated session Usually used to check if authenticated session is alive.

Parameters

NameType
customHeadersRecord<string, any>

Returns

ResponsePromise<AdminAuthRes>

Defined in

medusa-js/src/resources/admin/auth.ts:12

Was this page helpful?