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

Could not get state from storage when using Google Auth #100

Open
dosstx opened this issue Jun 28, 2019 · 0 comments
Open

Could not get state from storage when using Google Auth #100

dosstx opened this issue Jun 28, 2019 · 0 comments

Comments

@dosstx
Copy link

dosstx commented Jun 28, 2019

I am following your example and saw that you are using a Google Api as the OAuth authorization server:

redirect_uri: "http://localhost:8080/", 
authorization: "https://accounts.google.com/o/oauth2/auth",

I followed along on my own tests and now get the following error when using the JSO library (v 4.1.1):

vue.runtime.esm.js:1888 Error: Could not get state from storage.
    at JSO.processTokenResponse (JSO.js:104)
    at JSO.callback (JSO.js:279)
    at Object.authCallBack (AuthService.js:27)
    at Vue.created (main.js:197)
    at invokeWithErrorHandling (vue.runtime.esm.js:1854)
    at callHook (vue.runtime.esm.js:4213)
    at Vue._init (vue.runtime.esm.js:5002)
    at new Vue (vue.runtime.esm.js:5079)
    at Module../src/main.js (main.js:191)
    at __webpack_require__ (bootstrap:766)

You can replicate the error here: https://codesandbox.io/embed/redirect-ezt5b

When I've used this library in the past, I had no issues using Google Auth. I dont' know if it has something to do with loading the redirect_uri twice (over at Google Service and local code)

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

No branches or pull requests

1 participant