mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-06 10:38:35 +00:00
refactor: rewrite to cookie based auth (#578)
* rewrite to cookie based auth * remove interceptor
This commit is contained in:
parent
2cd3c15215
commit
1365bdfd46
8 changed files with 155 additions and 71 deletions
|
@ -7,6 +7,7 @@ export default defineNuxtRouteMiddleware(async () => {
|
|||
}
|
||||
|
||||
if (!ctx.user) {
|
||||
console.log("Fetching user data");
|
||||
const { data, error } = await api.user.self();
|
||||
if (error) {
|
||||
return navigateTo("/");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue