Enforce UUID v4 format for user ids?
Is it possible to force user ids to be UUID, or have some sort of hook that enforces user ids?
I'm asking b/c Apple's
appAccountToken
must be a UUID.1 Reply
there is a customIdGenerator option in the adapter docs.. perhaps that would help?
https://www.better-auth.com/docs/guides/create-a-db-adapter#customidgenerator
Create a Database Adapter | Better Auth
Learn how to create a custom database adapter for Better-Auth