Social Provider Account Federation
The following allows a developer to initiate an authentication usinginitAuth
using the same parameters as the first signed-in session on the WaaS
object with an additional guest or social provider, where the provider challenge
is returned and passed to the linkAccount
function:
Email One-Time Password Account Federation
Using the one-time password email approach to authenticate requires the password sent to the users’ email to be passed into the challenge, and called via thelinkAccount
function:
Account Federation with Guest Wallets
It is common practice for games to enable a user to sign-in within the background of an application with a guest wallet, have that wallet stored in the cache by the SDK, then later prompt the user for a social login provider to link to the first initial wallet using one of the previously explained approaches. Therefore, if assets have been accumulated in the wallet, transactions performed on-chain, or signatures have been saved, the wallet can have continuity. Using a guest wallet first approach can enable a user to try a game or experience invisibly, before authenticating for the long term and smoothing the onboarding process. Developers can use the above methodologies once a guest is authenticated in order to ensure the user can reaccess their account going forward.List Accounts
CallinglistAccounts
will return an object with the following: an array of accounts
object(s) (with id
, type
, and issuer
), as well as the currentAccountId
, for example: "Guest:0x0104...
: