-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Husky Login Requirement #115
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FIREEEEE 🔥
signIn({ user }) { | ||
const email = user.email; | ||
|
||
if (!email?.endsWith("@husky.neu.edu")) { | ||
return "/redirection"; | ||
} | ||
return true; | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CLEAN 💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bada bing bada boom
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yippee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lfg
Description
Made it so that when a user logs in, they have to log in with their @husky.neu.edu email. If they try to log in with a different email, they are brought to a page that tells them to log in again with the correct email. The sign in/sign out button also redirects to the home page once it's clicked.
Motivation and Context
Closes #107
How has this been tested?
Trial and error with pressing the button over and over again :)
Screenshots (if appropriate):
Types of changes
Checklist: