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