Better AuthBA
Better Authโ€ข8mo 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;


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 ๐Ÿ™‚
Was this page helpful?