chore: auth workflow in magic-link (#1292)
This commit is contained in:
parent
be7706e62e
commit
e73bd96dbc
2 changed files with 42 additions and 39 deletions
|
|
@ -2,7 +2,12 @@ import axios from "axios";
|
|||
import Cookies from "js-cookie";
|
||||
|
||||
const unAuthorizedStatus = [401];
|
||||
const nonValidatedRoutes = ["/", "/reset-password", "/workspace-member-invitation"];
|
||||
const nonValidatedRoutes = [
|
||||
"/",
|
||||
"/magic-sign-in",
|
||||
"/reset-password",
|
||||
"/workspace-member-invitation",
|
||||
];
|
||||
|
||||
const validateRouteCheck = (route: string): boolean => {
|
||||
let validationToggle = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue