# There is some issue with cookies, since we couldn't find your session

**URL:** <https://community.auth0.com/t/there-is-some-issue-with-cookies-since-we-couldnt-find-your-session/89742>\
**Category:** Get Help\
**Tags:** custom-social-connec\
**Created:** [August 31, 2022, 4:28am UTC](https://community.auth0.com/t/there-is-some-issue-with-cookies-since-we-couldnt-find-your-session/89742 "2022-08-31T04:28:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincenthoong](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vincenthoong/32/39640_2.png) [@vincenthoong](https://community.auth0.com/u/vincenthoong)\
**Post date:** [August 31, 2022, 4:28am UTC](https://community.auth0.com/t/there-is-some-issue-with-cookies-since-we-couldnt-find-your-session/89742/1 "2022-08-31T04:28:42Z")

</div>

Hey guys,

I am currently trying to setup a NextJS application Authorization Server for Auth0 Social Connection to integrate with it.

I’ve successfully went through the first step which links to my **[https://domain.com/oauth/authorize](https://domain.com/oauth/authorize)**. But when I call the redirect URI using **`router.push(redirectUri?code=xxx)`** it throws me this error.

> You may have pressed the back button, refreshed during login, opened too many login dialogs, or there is some issue with cookies, since we couldn’t find your session. Try logging in again from the application and if the problem persists please contact the administrator.

Am I doing this wrongly?

I tried **`window.location.href`** it doesn’t work too.

Looking for help. Thanks.

---

<div class="post-metadata">

**Author:** ![vincenthoong](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vincenthoong/32/39640_2.png) [@vincenthoong](https://community.auth0.com/u/vincenthoong)\
**Post date:** [September 1, 2022, 4:24am UTC](https://community.auth0.com/t/there-is-some-issue-with-cookies-since-we-couldnt-find-your-session/89742/2 "2022-09-01T04:24:25Z")

</div>

Problem solved:

Should include the existing query parameters in the callback to have it works.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 19, 2024, 11:44pm UTC](https://community.auth0.com/t/there-is-some-issue-with-cookies-since-we-couldnt-find-your-session/89742/3 "2024-11-19T23:44:58Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
