aidansunbury / forms-forge

0 stars 0 forks source link

Google access and refresh token not set on initial sign up #16

Open aidansunbury opened 3 months ago

aidansunbury commented 3 months ago

The signIn callback does not store the access and refresh token when a user signs up for the first time

aidansunbury commented 3 months ago

Screenshot 2024-08-11 at 6 42 02 PM

The issue is here. This update operation won't do anything on initial user sign in, because no user is found.

Need to get the name, email, etc. and insert the user if it does not exist, or just have an inser, and then onConflict update