User account management.
Prompts the user to login if they are not logged in. If an OAuth verifier is not provided, a modal selector will be shown.
LoginParams(optional) : The login options. Used to specify a type of login
enum: The OAuth verifier name. Supported options for verifier are
Promise<string>: Returns a promise which resolves to the Ethereum addresses associated with the user.
Logs the user out of Torus. Requires that a user is logged in already.
Promise<void>: Returns a promise which resolves to void. Rejects if the user is not logged in.
Returns the logged-in user's info including name, email, and imageUrl. Only
works if the user is logged in. In every
session, only the first call opens
the popup for the user's consent to access this information. All subsequent
requests within the session don't trigger the popup.
Promise<UserInfo>: Returns a promise which resolves to