Documentation

Getting an Identity from permissions

Web
JSON

Identity From Permissions is not needed for ScatterJS. This documentation is solely meant for native desktop/mobile applications.
For ScatterJS this happens automatically behind the scenes.

This API route simply returns any previously accepted Get Identity requests, along with the requirements that were last requested.

scatter.getIdentityFromPermissions().then(identity => {
    //...
}).catch(error => {
    //...
})

// The latest scatter-js will also allow using:
scatter.checkLogin()
{
    id:'random-uid',
    type:'identityFromPermissions',
    plugin:'Your App Name',
    payload:{
        origin:'domain' || 'YOUR_APP'
    }
}