Skip to main content
BETA
HomeIntegration BuilderAPI ReferenceGuides
View Mirror World on Github
Join the Discord server

Language:

loginWithEmail

Logs a user in using their email address and password. This method is accessible in the browser and Node.js.


_11
import { MirrorWorld, ClusterEnvironment } from "@mirrorworld/web3.js"
_11
_11
const mirrorworld = new MirrorWorld({
_11
apiKey: "YOUR_SECRET_API_KEY",
_11
env: ClusterEnvironment.mainnet,
_11
})
_11
_11
const { refreshToken } = await mirrorworld.loginWithEmail({
_11
_11
password: "super-secret-password"
_11
})

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

    Home

    Tutorials

    Guides

    API Reference