/verify-token --> /verify-signed-in

This commit is contained in:
Max Leiter 2022-05-06 21:57:59 -07:00
parent 743ca20470
commit a30425a069
No known key found for this signature in database
GPG key ID: A3512F2F2F17EBDA
2 changed files with 2 additions and 2 deletions

View file

@ -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",

View file

@ -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"