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

Language:

LoginWithEmail

Logs in a user with email and password.

Parameters

email - User's email address.

password - User's password.

action|Action<CommonResponse<LoginResponse>> - After the user logged, this action will be called.

Returns

response class - LoginResponse

Code Example


string email = "your email address";
string password = "your email password";
MWSDK.LoginWithEmail(email, password, (res) => {
LoginResponse resObj = loginResponse;
string solAddress = resObj.user.wallet.sol_address;
string userName = resObj.user.username;
//todo...
MWSDK.DebugLog("Login result:" + JsonUtility.ToJson(loginResponse));
});

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

Home

Integration

Guides

API Reference

Changelog