Complete backend and frontend integration
When a user signs in with SSO:
- notify backend (with API key) that user has signed in
- backend creates/updates user and returns JWT
- jwt is saved in secure cookie (NextAuth.js)
To handle oauth in db, provider
and provierAccountId
needs to be saved. Should be indexed as well for better performance.
Edited by Martin Kaller