login
Authenticates a user using a customized user interface. It supports social authentication with Google, Twitter, Discord and Apple. This method opens a UI that authenticates the user.
_8import { MirrorWorld, ClusterEnvironment } from "@mirrorworld/web3.js"_8_8const mirrorworld = new MirrorWorld({_8 apiKey: "YOUR_SECRET_API_KEY",_8 env: ClusterEnvironment.mainnet_8})_8_8const { refreshToken, user } = await mirrorworld.login()
Edit this page on GitHub