Next.jsOAuth relatedgraphProfile.id, but the internal Better Auth user still gets a random id. The only way we’ve found to keep session.user.id in sync with our database is to add a customSession plugin that, on every auth.api.getSession, hits our DB and swaps in dbUser.id. That works but it means an extra DB query per request and requires the user row to exist beforehand.getUserInfo to return the Graph objectId → Better Auth still generates its own id.mapProfileToUser → only sets additional fields, doesn’t affect primary key.generateId hook or some event to upsert our own user before Better Auth stores it—didn’t find a clear pattern.