BA
Better Authโ€ข5mo 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. Thanks ๐Ÿ™‚
1 Reply
Jon
JonOPโ€ข5mo ago
GitHub
Release v1.2.8-beta.3 ยท better-auth/better-auth
๐Ÿž Bug Fixes drizzle-adapter: Missing operators ย -ย  by @ping-maxwell in #2408 (05770) generic-oauth: On link account make sure to match provider Id before updating existing account ย -ย  by @B...

Did you find this page helpful?