Jon
BABetter Auth
•Created by Jon on 4/29/2025 in #help
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:
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 failedI 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 🙂
2 replies
BABetter Auth
•Created by Jon on 3/3/2025 in #help
What does this TypeScript error (red squiggly) mean?
2 replies
BABetter Auth
•Created by Jon on 2/22/2025 in #help
Create a SSO provider without having to insert it at runtime?
When using the SSO plugin https://www.better-auth.com/docs/plugins/sso it's weird there is no simple comfig for the proivder like there is with the GenericOAuth2 - instead it needs to be inserted by a logged-in user at runtime - and then remains tied to that user forever.
I'm I missing something?
If I should just use GenericOAuth2, is there a way to provision new users like you can with the SSO plugin - it would be great to be able to assign all users to a specific organization.
2 replies