Skip to main content
View Zag.js on Github
Join the Discord server


User login with different social accounts.

Every kind of social account login will provide a new wallet for users. These wallets are not same.

Login invalidation

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

MirrorSDK.IsLoggedIn((isLoggedIn)=>{ if(isLoggedIn){ //TODO: Show content directely }else{ //TODO: Show login page } });

Edit this page on GitHub

On this page