Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storagePrefix not working when useState = true #5

Closed
sekowalczyk opened this issue Aug 10, 2022 · 1 comment · Fixed by #6
Closed

storagePrefix not working when useState = true #5

sekowalczyk opened this issue Aug 10, 2022 · 1 comment · Fixed by #6

Comments

@sekowalczyk
Copy link

FYI - using storagePrefix is not working when useState = true.

It looks like the doAuthorizationCodeFlow processing in AuthCodeFunctions.tsx is not propagating the storagePrefix value in the getCodeLocation call so the state is being saved without the storagePrefix. This causes a 'State does not match' error in tradeCodeForToken in AuthCodeProvider.tsx since it's looking for the value with the storagePrefix.

Let me know if you need more details.

@DarylBuckle
Copy link
Owner

Hi @sekowalczyk, thanks for the info and for looking into.

I've recreated the issue and will fix in 0.1.4.

DarylBuckle added a commit that referenced this issue Aug 20, 2022
DarylBuckle added a commit that referenced this issue Aug 20, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants