ebs.auth.logout

Logs out the current user and redirects to the login screen. Optionally, it can redirect the user to a specified page upon re-login.

Syntax

Copy
ebs.auth.logout(customRedirect?: string): Promise<void>;
 
Parameter Type Description
customRedirect
(optional)
string URL to redirect the user to after logging back in.

Response

Returns a void promise object, allowing you to associate handlers in case of success of failure.

Example