Skip to main content

Logout User

Trigger the logout flow.

info

It is not advised to be used in iOS since it will trigger a system dialog that asks if users want to allow a Login operation.

Method

logout(): Promise<void>;

This method has no input and returns a Promise that resolves if the operation is successful, and rejects if the operation failed.

Usage

await web3auth.logout()
On this page