Reverting some uneccesary changes

This commit is contained in:
Keith Stevens
2023-01-28 17:58:52 +09:00
parent 62d00d5bd4
commit 75c4f90db3
4 changed files with 7 additions and 3 deletions
@@ -148,6 +148,9 @@ export const authOptions: AuthOptions = {
}
},
},
/*
* We maybe need this, we maybe don't. Checking in this uncommented until
* it's confirmed we can drop this.
cookies: {
sessionToken: {
name: `next-auth.session-token`,
@@ -159,6 +162,7 @@ export const authOptions: AuthOptions = {
},
},
},
*/
session: {
strategy: "jwt",
},
+2 -1
View File
@@ -11,7 +11,8 @@ import useSWR from "swr";
import useSWRImmutable from "swr/immutable";
const Dashboard = () => {
useSWR("http://localhost:8080/api/v1/auth/check", get);
// Adding a demonstrative call to the backend that includes the web's JWT.
useSWR(`${process.env.BACKEND_URL}/api/v1/auth/check`, get);
const { data } = useSWRImmutable<AvailableTasks>("/api/available_tasks", get);