mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 03:26:17 +00:00
Update auth-setup.tsx
This commit is contained in:
@@ -48,6 +48,7 @@ export function AuthSetup({ onComplete }: AuthSetupProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
console.log("[v0] Authentication skipped successfully")
|
console.log("[v0] Authentication skipped successfully")
|
||||||
|
localStorage.setItem("proxmenux-auth-declined", "true")
|
||||||
setOpen(false)
|
setOpen(false)
|
||||||
onComplete()
|
onComplete()
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@@ -98,6 +99,7 @@ export function AuthSetup({ onComplete }: AuthSetupProps) {
|
|||||||
|
|
||||||
if (data.token) {
|
if (data.token) {
|
||||||
localStorage.setItem("proxmenux-auth-token", data.token)
|
localStorage.setItem("proxmenux-auth-token", data.token)
|
||||||
|
localStorage.removeItem("proxmenux-auth-declined")
|
||||||
console.log("[v0] Authentication setup successful")
|
console.log("[v0] Authentication setup successful")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user