Rollback openid connect to use code and nonce
Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com>
This commit is contained in:
parent
4c028bfcb3
commit
89baafba2f
2 changed files with 17 additions and 9 deletions
|
@ -165,6 +165,10 @@ class LocalUserStore {
|
|||
|
||||
verifyState(value: string): boolean {
|
||||
const oldValue = localStorage.getItem(state);
|
||||
if (!oldValue) {
|
||||
localStorage.setItem(state, value);
|
||||
return true;
|
||||
}
|
||||
return oldValue === value;
|
||||
}
|
||||
getState(): string | null {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue