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

after google login stuck on page application not calls getSession #811

Closed
2 tasks done
okandavut opened this issue Jul 20, 2023 · 8 comments
Closed
2 tasks done

after google login stuck on page application not calls getSession #811

okandavut opened this issue Jul 20, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@okandavut
Copy link

okandavut commented Jul 20, 2023

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Hi,
I am using google login with simple implementation and 2 days before it started not working after user selects google account it page stuck in application with below url. Actually the reason is getSession method not triggered and session is not set the browser. I checked access token information is valid but I didn't change anything. After updating 2.26.0 it started doing this. I downgraded to 2.4.0 but not works.

http://localhost:5173/#access_token=eyJhbGciOiJIUzI1NiIsImtpZCI6ImdLVWdtWEgzWDdRanhQVzMiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOiJhdXRoZW50aWNhdGVkIiwiZXhwIjoxNjkwNDU1MTAwLCJpYXQiOjE2ODk4NTAzMDAsImlzcyI6Imh0dHBzOi8vaHR0cHM6Ly9md2FhcnFkc3hqbnRjeWhpbWtuay5zdXBhYmFzZS5jby9hdXRoL3YxIiwic3ViIjoiYjY2NDBmYTEtMzA0ZS00YjdlLWJhNmItZWUwYzBmYzc4OTE3IiwiZW1haWwiOiJkYXZ1dC5va2FuQGdtYWlsLmNvbSIsInBob25lIjoiIiwiYXBwX21ldGFkYXRhIjp7InByb3ZpZGVyIjoiZW1haWwiLCJwcm92aWRlcnMiOlsiZW1haWwiLCJnb29nbGUiLCJnaXRodWIiXX0sInVzZXJfbWV0YWRhdGEiOnsiYXZhdGFyX3VybCI6Imh0dHBzOi8vbGgzLmdvb2dsZXVzZXJjb250ZW50LmNvbS9hL0FBY0hUdGNqdnlKSXM2SFJoUXFQWXZ2bWp2RHNLak41OXZ4c2FzQkE2MWYtTmxsWnhPMD1zOTYtYyIsImVtYWlsIjoiZGF2dXQub2thbkBnbWFpbC5jb20iLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiZnVsbF9uYW1lIjoiT2thbiBEQVZVVCIsImlzcyI6Imh0dHBzOi8vYWNjb3VudHMuZ29vZ2xlLmNvbSIsIm5hbWUiOiJPa2FuIERBVlVUIiwicGljdHVyZSI6Imh0dHBzOi8vbGgzLmdvb2dsZXVzZXJjb250ZW50LmNvbS9hL0FBY0hUdGNqdnlKSXM2SFJoUXFQWXZ2bWp2RHNLak41OXZ4c2FzQkE2MWYtTmxsWnhPMD1zOTYtYyIsInByb3ZpZGVyX2lkIjoiMTA4Mzc0NzEyOTU1MTA3Nzc1OTA5Iiwic3ViIjoiMTA4Mzc0NzEyOTU1MTA3Nzc1OTA5In0sInJvbGUiOiJhdXRoZW50aWNhdGVkIiwiYWFsIjoiYWFsMSIsImFtciI6W3sibWV0aG9kIjoib2F1dGgiLCJ0aW1lc3RhbXAiOjE2ODk4NTAzMDB9XSwic2Vzc2lvbl9pZCI6IjM2MWY4MWE5LWZmY2YtNGE1Ni05NzViLTc4MzM3NGIzYzdhZCJ9.1U19f7r-TSA9VjTiQP4Vovnd1AlCuz7pFovt7hpw4sc&expires_in=604800&provider_refresh_token=1%2F%2F09AQRMtQGNgqNCgYIARAAGAkSNwF-L9Ira5xFR18NzO2M9mi62ixWocSiSH06SUCSSYyh082cjLei4aD0xzcK9P7btLIkN3etEds&provider_token=ya29.a0AbVbY6MrOUQbj6HO4M64vKM7FsdJFdWOQoXltySEZkLcV--iSwtSO91x_lg4Y-iD63XUbbMfgDhqyJib8Q58ubb9JdtX_QQebhdR1Tl7Yz5sXwIbvS7WewBXVot0YhSnpm0te9mh8_NpwBbo_cR0PRBlC69_aCgYKAc0SARMSFQFWKvPlfUJRB9xfCnevnoDtmiFnfg0163&refresh_token=GhgurJLmr_xiswoz5fuoGA&token_type=bearer

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to login
  2. Select account
  3. Stuck on the page
  4. See error

Expected behavior

Needs to set session to localstorage and cookie and open page.

Screenshots

image

Code:

signInWithOAuth:
image

App.jsx file:

image image

System information

  • OS: [e.g. macOS, Windows/]
  • Browser - Chrome / Safari / Mozilla
  • Version of supabase-js: 2.26.0
  • Version of Node.js: latest

Additional context

Application is react app + Vite and using TypeScript.

@okandavut okandavut added the bug Something isn't working label Jul 20, 2023
@hf
Copy link
Contributor

hf commented Jul 20, 2023

Please upgrade to the latest version of gotrue-js.

@okandavut
Copy link
Author

okandavut commented Jul 20, 2023

I updated and tried before creating the issue. @hf
Current version is:
"@supabase/gotrue-js": "^2.44.1",
"@supabase/supabase-js": "^2.26.0",

I checked package-lock now and can see like this:

image

@okandavut
Copy link
Author

Can anyone help about this problem because after install last version I started see errors. Today also updated and you can see in screenshots. @hf do you have any suggestion for me?

@meathill
Copy link

I'm facing the same issue. I'm using Nuxt@3.6.1 and @nuxtjs/supabase@0.3.8.

@okandavut
Copy link
Author

Used this solution but latest version has problems.

supabase/supabase#15930 (comment)

@nddr
Copy link

nddr commented Jul 23, 2023

Having the same issue with Nuxt@3.6.5 and @nuxtjs/supabase@0.3.8

@hf
Copy link
Contributor

hf commented Jul 24, 2023

Hey folks! Sorry about these issues. Please roll back to any version that worked for you.

We're tracking the fix in this issue: supabase/supabase#15930

@kangmingtay
Copy link
Member

hey everyone, we're gonna close this since the issue has been resolved as mentioned in supabase/supabase#15930

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants