Skip to content

Commit 52cd84d

Browse files
committed
feat: switched to OTP auth first
1 parent 0b25866 commit 52cd84d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cypress/e2e/auth.cy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ describe("Confirm email", () => {
742742

743743
it("Redirects to login when unauthenticated", () => {
744744
cy.visit("/confirm-email");
745-
cy.location("pathname").should("eq", "/login");
745+
cy.location("pathname").should("eq", "/login/otp");
746746
// There should be a query param of redirect pointing to /confirm-email
747747
cy.location("search").should("eq", "?redirect=/confirm-email");
748748
});

src/router/gates/auth.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default class extends baseGate {
1717
route(): false | RouteLocationRaw {
1818
// If the route was supposed to be login-otp, we should redirect to login-otp, else just login
1919
return {
20-
name: "login",
20+
name: "login/otp",
2121
};
2222
}
2323
}

0 commit comments

Comments
 (0)