You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use same storage regardless of flow in sample
The "smart" way to select a different storage type in the sample
was causing issues. Sometimes the `setStorage(localStorage)` call
would be made just before the _first_ time someone uses Code Flow
which after the redirect causes the app to look in `sessionStorage`
for the nonce (which it wont find as the initiation of Code Flow
still used the localStorage).
This fix changes it to always use the same storage type, which gives
more reliable results. (I did consider further tweaking the "smart"
way to select the right storage, but it's super hard to predict in
which order(s) users will swap between flow types in the sample).
See also: #728 (comment)Fixes#728
0 commit comments