Skip to main content
BETA
HomeIntegration BuilderAPI ReferenceGuidesChangelog
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.


import { MirrorWorld, Solana } from "@mirrorworld/web3.js"
const mirrorworld = new MirrorWorld({
apiKey: "YOUR_SECRET_API_KEY",
chainConfig: Solana("mainnet-beta"),
})
const { refreshToken, user } = await mirrorworld.login()

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

    Home

    Integration

    Guides

    API Reference

    Changelog