umang
umang
BABetter Auth
Created by umang on 5/12/2025 in #bug-reports
overrideUserInfoOnSignIn not working with Google
Steps to repro: 1. in auth.ts, under socialProviders: {google: ... } I've set overrideUserInfoOnSignIn: true 2. I go to my db, manually edit the user.name column to gibberish 3. Gibberish shows in session.user.name property in code 4. Sign out, sign in again (via Google OAuth), gibberish still showing in the db field. 5. Have to delete the user and sign up again to correct the name. Please LMK if my understanding of what overrideUserInfoOnSignIn should do is mistaken. Thanks.
2 replies