user object captures every authentication method as a verified credential. This guide shows how to find which method was used most recently and how to inspect each credential’s type.
Finding the most recent login
user.lastVerifiedCredentialId points to the credential the user authenticated with most recently. Look it up in user.verifiedCredentials:
- JavaScript
- React
Credential formats
Theformat field on each verified credential identifies the authentication method:
Wallet credentials
Forformat === 'blockchain', walletProvider describes the wallet kind:
Social credentials
Forformat === 'oauth', oauthProvider identifies the social network. See Social Account Linking for the full provider list and management APIs.
getUserSocialAccounts is a typed helper that filters verifiedCredentials to OAuth entries and exposes provider, displayName, emails, photos, and verifiedCredentialId.
Helper: a single login-method label
Map credential formats and wallet providers to a single tag your UI can branch on:userChanged: