BA
Better Auth•16h ago
Jon

overrideUserInfo? in GenericOAuth?

I see OAuth2 plugin got overrideUserInfoOnLogin and when seeing how that worked I noticed on GenericOAuth there is the similarly named overrideUserInfo which the interface describes as:
/**
* Override user info with the provider info.
*
* This will update the user info with the provider info,
* when the user signs in with the provider.
* @default false
*/
overrideUserInfo?: boolean;
/**
* Override user info with the provider info.
*
* This will update the user info with the provider info,
* when the user signs in with the provider.
* @default false
*/
overrideUserInfo?: boolean;
However when I try to use it I just get a blank screen on the callback, and the console says:
SERVER_ERROR: SqliteError: FOREIGN KEY constraint failed
I use the default Kyseley, and tried to generate and migrate the database in case there were any changes, but it says none were needed. It might be fixed if I delete the database and start over - but that is not the way I can do things in production so I'm looking for a reason for this error and the correct fix. Thanks 🙂
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?