Skip to content

Commit

Permalink
print user data
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshal Ranjhani authored and Harshal Ranjhani committed Apr 23, 2024
1 parent 287e09a commit adf8c95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/api/auth/callback/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function GET(request: Request) {

if (userExistsError && !userExists) {
// Only insert if user does not exist
await supabase
const {data} = await supabase
.from('users')
.insert({
user_id: supabase_user.identities[0].user_id,
Expand All @@ -36,6 +36,7 @@ export async function GET(request: Request) {
name: supabase_user.user_metadata?.user_name,
})
.throwOnError();
console.log(data)
} else {
console.log('User already exists, skipping insertion.');
}
Expand Down

0 comments on commit adf8c95

Please sign in to comment.