LogoRobo.js
Packages@robojs/auth

removeSession()

Function: removeSession()

function removeSession(userId, options?): Promise<Response>

Removes a session from the device stack and deletes the server-side session.

Parameters

ParameterTypeDescription
userIdstringThe user ID to remove.
options?ClientOptionsOverrides for base path, headers, or a custom fetch implementation.

Returns

Promise<Response>

The raw Response from the server.

Example

await removeSession('user-id-456')

On this page