# X_OAUTH_PROVIDER_DUPLICATE

## Means

two oauth providers were registered under one id

## Typical cause

two `registerOAuthProvider` calls claiming one id. Refused at boot rather than replacing silently, because the winner would be whichever module imported second — and it decides where every login for that id goes, **including which `issuers` an id token may claim**

## Fix

give one of them a different id, or delete the duplicate `registerOAuthProvider({ id: '<id>' })` call

[Auth and sessions](/error-codes#auth-and-sessions)
