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

Language:

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.


_8
import { MirrorWorld, ClusterEnvironment } from "@mirrorworld/web3.js"
_8
_8
const mirrorworld = new MirrorWorld({
_8
apiKey: "YOUR_SECRET_API_KEY",
_8
env: ClusterEnvironment.mainnet
_8
})
_8
_8
const { refreshToken, user } = await mirrorworld.login()

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

    Home

    Tutorials

    Guides

    API Reference