Token-Cookie pfadunabhängig speichern
This commit is contained in:
@@ -8,7 +8,7 @@ export default defineNuxtPlugin(() => {
|
||||
credentials: "include",
|
||||
|
||||
async onRequest({ options }) {
|
||||
const token = useCookie("token").value
|
||||
const token = useCookie<string | null>("token", { path: "/" }).value
|
||||
|
||||
// Falls im Request explizit ein anderer JWT übergeben wird
|
||||
if (options.context?.jwt) {
|
||||
|
||||
Reference in New Issue
Block a user