fixes randomState to have 8 chars instead of 6

This commit is contained in:
Ulrik Kristensen 2025-03-03 13:20:08 +01:00
parent 6431e7145d
commit a98f9c698b

View file

@ -115,7 +115,7 @@ const LoginView = () => {
Navigate('/forgot-password') Navigate('/forgot-password')
} }
const generateRandomState = () => { const generateRandomState = () => {
const randomState = Math.random().toString(36).substring(7) const randomState = Math.random().toString(32).substring(5)
localStorage.setItem('authState', randomState) localStorage.setItem('authState', randomState)
return randomState return randomState