From a30425a069b44b912223980022162879f6f67233 Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Fri, 6 May 2022 21:57:59 -0700 Subject: [PATCH] /verify-token --> /verify-signed-in --- client/lib/hooks/use-signed-in.ts | 2 +- server/src/routes/auth.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/lib/hooks/use-signed-in.ts b/client/lib/hooks/use-signed-in.ts index 428f0f1d..85077553 100644 --- a/client/lib/hooks/use-signed-in.ts +++ b/client/lib/hooks/use-signed-in.ts @@ -19,7 +19,7 @@ const useSignedIn = () => { const attemptSignIn = async () => { // If header auth is enabled, the reverse proxy will add it between this fetch and the server. // Otherwise, the token will be used. - const res = await fetch("/server-api/auth/verify-token", { + const res = await fetch("/server-api/auth/verify-signed-in", { method: "GET", headers: { "Content-Type": "application/json", diff --git a/server/src/routes/auth.ts b/server/src/routes/auth.ts index 95ef5b2f..95d33b5e 100644 --- a/server/src/routes/auth.ts +++ b/server/src/routes/auth.ts @@ -147,7 +147,7 @@ function generateAccessToken(user: User) { return token } -auth.get("/verify-token", jwt, async (req, res, next) => { +auth.get("/verify-signed-in", jwt, async (req, res, next) => { try { res.status(200).json({ message: "You are authenticated"