Skip to content

validateSession()

The validateSession function returns from Amee, used to get the session and the token object from the given JWT Token.

Syntax

validateSession(token);

Parameters

token: string;

The JWT token

Returns

Promise<AmeeSession<SessionData>>;

The Amee session object.

Example Usage

const session = validateSession(token);

See Also