fixes randomState to have 8 chars instead of 6
This commit is contained in:
parent
6431e7145d
commit
a98f9c698b
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ const LoginView = () => {
|
|||
Navigate('/forgot-password')
|
||||
}
|
||||
const generateRandomState = () => {
|
||||
const randomState = Math.random().toString(36).substring(7)
|
||||
const randomState = Math.random().toString(32).substring(5)
|
||||
localStorage.setItem('authState', randomState)
|
||||
|
||||
return randomState
|
||||
|
|
Loading…
Add table
Reference in a new issue