You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering how you guys handle a new user sign up?
I know in the jwt callback there's an isNewUser parameter that is returned. I tried to do a router.push(url) here as I want there to be some additional defaults set which should go into a different table on sign up only but it yielded a browser runtime error. Is there a way to add this isNewUser field into the useSession? I don't want to store it against the user though (so doesn't need to go into the user table) so I don't think I need to extend the model.
I don't seem to get much luck on here with questions so hopefully somebody has done something similar.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I was wondering how you guys handle a new user sign up?
I know in the jwt callback there's an
isNewUser
parameter that is returned. I tried to do arouter.push(url)
here as I want there to be some additional defaults set which should go into a different table on sign up only but it yielded a browser runtime error. Is there a way to add thisisNewUser
field into theuseSession
? I don't want to store it against the user though (so doesn't need to go into the user table) so I don't think I need to extend the model.I don't seem to get much luck on here with questions so hopefully somebody has done something similar.
Thanks all.
Beta Was this translation helpful? Give feedback.
All reactions