Skip to main content

Class: AdminAuthResource

Hierarchy

  • Copy to Clipboard

    Copy to Clipboard

Methods

createSession

createSession(Copy to Clipboard, Copy to Clipboard): Copy to Clipboard<Copy to Clipboard>

Copy to Clipboard

Creates an authenticated session

Parameters

NameType
Copy to ClipboardCopy to Clipboard
Copy to ClipboardCopy to Clipboard<Copy to Clipboard, Copy to Clipboard>

Returns

Copy to Clipboard<Copy to Clipboard>

Defined in

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


deleteSession

deleteSession(Copy to Clipboard): Copy to Clipboard<Copy to Clipboard>

Copy to Clipboard

destroys an authenticated session

Parameters

NameType
Copy to ClipboardCopy to Clipboard<Copy to Clipboard, Copy to Clipboard>

Returns

Copy to Clipboard<Copy to Clipboard>

Defined in

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


getSession

getSession(Copy to Clipboard): Copy to Clipboard<Copy to Clipboard>

Copy to Clipboard

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

Parameters

NameType
Copy to ClipboardCopy to Clipboard<Copy to Clipboard, Copy to Clipboard>

Returns

Copy to Clipboard<Copy to Clipboard>

Defined in

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