Login with Bitclout
Note: After authenticating with grant type: bitclout, bitclout user information will be stored in browser local storage with key name: identityUser
import authefyWebClient from './path/to/@authefy/web-client';
/*
if grantType is bitclout, it will pop-up a new window provided by the
Bitclout Identity API. If the user does not exists, it will automatically create
a new user.
*/
await authefyWebClient.token.authenticate({
grantType: 'bitclout'
});
// returns: { accessToken: string; refreshToken: string; expiresIn: number; }Last updated
Was this helpful?