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

Language:

Authentication Methods | Android API Reference

Authentication Tips

User login with different social accounts.

Mirror World uniquely identifies a user by their email address. Whereas you may login with different accounts, if the email address associated with that social account is different, then we shall create a new account for the users. Likewise, the wallets associated with those accounts are not the same.

Login invalidation

Authentication tokens saved locally by SDK would be out of date. So when a user opens the app, the developer should check his authentication every time. If the token is invalidated, we should guide users to login again. For example, you can follow the logic like this:


MirrorSDK.getInstance().CheckAuthenticated(new BoolListener() {
@Override
public void onBool(boolean boolValue) {
boolean isLoggedIn = boolValue;
if(isLoggedIn){
//todo: enter content directly
}else {
//todo: show a button leading the user to login.
}
}
});

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

Home

Tutorials

Guides

API Reference