Login/Social Recovery
Overview
Developers can enable social recovery through Portkey SDK
Core SDK
type: loginAccount
Email, Google, Apple, or Telegram login.
did.login(type: 'loginAccount', params: AccountLoginParams): Promise<LoginResult>;
Usage
did.login('loginAccount', {
chainId: 'chainId',
loginGuardianIdentifier: 'loginGuardianIdentifier',
guardiansApproved: [
{
type: 'Email',
identifier: 'identifier',
verifierId: 'verifierId',
verificationDoc: 'verificationDoc',
signature: 'signature',
},
],
extraData: 'extraData',
context: {
requestId: 'requestId',
clientId: 'clientId',
},
});