mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
Allow any user to log into demo
This commit is contained in:
parent
d053273020
commit
50ee1db7a0
1 changed files with 7 additions and 5 deletions
|
|
@ -27,12 +27,14 @@ export const AuthOptions: NextAuthOptions = {
|
|||
},
|
||||
callbacks: {
|
||||
async signIn({ user, account, profile, email, credentials }) {
|
||||
// TODO: While we don't have a database with verified users, we will only allow hestia emails to sign in
|
||||
if (user.email?.endsWith("@hestia.homes")) {
|
||||
return true;
|
||||
}
|
||||
// TODO: While we don't have a database with verified users,
|
||||
// for the demo, allow any user to sign in
|
||||
// if (user.email?.endsWith("@hestia.homes")) {
|
||||
// return true;
|
||||
// }
|
||||
// TODO: Handle this more elegantly
|
||||
return "/beta";
|
||||
// return "/beta";
|
||||
return true;
|
||||
},
|
||||
async redirect({ baseUrl }) {
|
||||
const redirectUrl = baseUrl + "/home";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue