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()