Customizing default Schema after OAuth login
I'm trying to use the default schema and just update it with a few items:
I updated my schema with a new users table and added two fields at the end:
In the auth I used the createOrUpdateUser callback in auth.ts to create the user:
3 Replies
After sign-in, the user is redirected to /onboarding where it seems identity isn't being passed:
[CONVEX M(mutations/workspace/index:createWorkspace)] [LOG] 'IDENTITY' null
middleware.ts
Maybe I've just been at it too long today, but I'm ready to pull my hair out 😛
Anyone have any ideas?
The user, authAccounts, authRefreshTokens and authSessions are created - I just can't get the identity of the logged in user afterwards.
me too. I'm stuck with the exact same issue
Try this temporary workaround if it's related:
https://discord.com/channels/1019350475847499849/1273347536941486130/1273424586196779130
to confirm it's the issue, check the
sync
websocket and see whether the Authenticate
message is being sent (how to check the websocket: https://docs.convex.dev/auth/debug )Debugging Authentication | Convex Developer Hub
You have followed one of our authentication guides but something is not working.