API

Profile management

At the end of this guide, you will have a profile endpoint where users can update their name and email address, with automatic email re-verification when the email changes.

The profile endpoint returns the user's current verified email and accepts updates to their name and email. When users change their email, the new address is stored as pending until verified. Users continue using their existing email for login until verification completes.

The component includes:

  • Profile show and update endpoints
  • Pending email handling via the unverifiedEmail column
  • Automatic email reversion detection
  • Row-level locking for concurrent update safety
Unlock access
Only Plus subscribers can access the documentation
Log in now
Terms & License Agreement