[Feature Request] Customize authentication flow #65
Labels
Data Layer
Managing state, data, fetch info from API calls
New Feature
New feature or request
UI/UX
Requires making UI changes
Overview
Customize the authentication flow to prevent duplicate user accounts. Specifically to prevent officers from having duplicate accounts with their acmutd.co email.
The default functionality of NextAuth is to create a new user for each unique email. Since each officer is guaranteed to have a personal email and an acmutd.co email, this poses the problem where duplicate user accounts are created if an officer doesn't connect their acmutd.co account to their personal account.
This can be mitigated by customizing the sign in page to show every provider besides google internal acmutd.co. The officer is then forced to sign in with a personal account first.
An additional edge case is if an officer tries to sign in with google with their acmutd.co account. This can be prevented by handling using a sign in callback.
Tasks
Supplemental Information
The text was updated successfully, but these errors were encountered: