Skip to main content

Type definition

Below is the type definition for the LoginResponse type. This is the return type for the login() method from the useAuth hook. It contains authentication tokens after a successful login.
type LoginResponse = {
  suki_token: string;
  jwt_bearer: string;
};

login method

A function to start the login process for the user in your application.

useAuth hook

The hook for managing user authentication.
Last modified on April 1, 2026