Why does my account page redirect to login even after sign in?

Topic summary

Login redirect loop after social sign-in via a third-party app. When logged out, clicking the header profile icon correctly opens the login page. After signing in with the social login, the user is redirected to the Account page as expected. However, if the user then navigates to another page and clicks the same profile icon, it incorrectly sends them back to the login page instead of the Account page, despite still being logged in.

  • Platform: Shopify, with a header profile icon and a social login plugin.
  • Expected: Profile icon should lead to the Account page when already authenticated.
  • Actual: Profile icon leads to the login page post-authentication on subsequent visits.
  • Status: Request for help; no fixes or responses provided yet. Issue remains unresolved.
Summarized with AI on February 17. AI used: gpt-5.

I use a third-party app for social login on my website. I have a profile icon in the header. When I click on the icon (when not signed in) it takes me to the login page.

I log in using the social plugin, the page redirects me to the ‘Account’ page, which is fine. If I navigate to any other page on the website, and if I wish to come back to the account page by clicking on the profile icon in the header. Then it takes me to the login page again instead of taking me to the account page since I am already still logged in.

Can someone help me fix this issue?