Make all versions of next and react match
This commit is contained in:
parent
656f3fbe71
commit
935290bbdc
7 changed files with 2459 additions and 4127 deletions
|
|
@ -23,6 +23,10 @@ export default withAuth(
|
|||
const authorizedDomains = ["redaranj.com", "digiresilience.org"];
|
||||
const userDomain = token?.email?.toLowerCase().split("@").pop() ?? "unauthorized.net";
|
||||
|
||||
if (authorizedDomains.includes(userDomain)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue