loginWithEmail
Logs a user in using their email address and password. This method is accessible in the browser and Node.js.
_11import { MirrorWorld, ClusterEnvironment } from "@mirrorworld/web3.js"_11_11const mirrorworld = new MirrorWorld({_11 apiKey: "YOUR_SECRET_API_KEY",_11 env: ClusterEnvironment.mainnet,_11})_11_11const { refreshToken } = await mirrorworld.loginWithEmail({_11 email: "[email protected]",_11 password: "super-secret-password"_11})
Edit this page on GitHub