Skip to content

AuthModule

Provides authentication-related methods to interact with the API.

new AuthModule(client): AuthModule

ApiClient

AuthModule

login(email, password): Promise<any>

Authenticates a user with email and password.

string

The user’s email address.

string

The user’s password.

Promise<any>

A promise resolving to the authentication response containing the token.


me(): Promise<any>

Retrieves the current authenticated user’s profile and permissions.

Promise<any>

A promise resolving to the user profile and their associated permissions.