nextauth architecture help
Unanswered
Elegant Trogon posted this in #help-forum
Elegant TrogonOP
I'm working on an application using nextjs and nextauth and I'm having trouble understanding where I should place some things. Here is what I want to do:
- collect a role (athlete or coach) on registration
- add this role to the User in my database
- redirect coaches to one page and athletes to another after both registration and signin
Can someone point me in the right direction for where this logic should go? I've seen callbacks, overriding parts of the database adapter, and other ideas.
- collect a role (athlete or coach) on registration
- add this role to the User in my database
- redirect coaches to one page and athletes to another after both registration and signin
Can someone point me in the right direction for where this logic should go? I've seen callbacks, overriding parts of the database adapter, and other ideas.