Skip to main content
A Dynamic user can authenticate through multiple methods — email, social, passkey, or a wallet — and may add more over time. The 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:

Credential formats

The format field on each verified credential identifies the authentication method:

Wallet credentials

For format === 'blockchain', walletProvider describes the wallet kind:

Social credentials

For format === '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:
In React, drop this in a hook subscribed to userChanged:

Iterating all credentials

To show the user their full authentication history (e.g. an account-security panel), walk the array:
Last modified on June 24, 2026