mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-08-07 11:17:38 +08:00
Reverting some uneccesary changes
This commit is contained in:
@@ -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",
|
||||
},
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user