Comments (18)
yea. this won't work with cookie based auth. Switch to using header based auth.
from supertokens-auth-react.
Hi @antoniodinovi What backend SDK and version are you using?
Also can you try creating an app with our CLI to see if the issue still persists? I cannot recreate the issue with our latest React and Node SDKs
from supertokens-auth-react.
Hi,
Closing this since we havent heard back from you, feel free to re-open if the issue still persists
from supertokens-auth-react.
I'am having the same issue with
Frontend:
"supertokens-auth-react": "^0.32.3"
Backend
"supertokens-node": "^14.0.2",
Please any help ?
from supertokens-auth-react.
@cbadour can you tell us how to reproduce it please? And also, does it work if you downgrade to 0.32.1 (as the OP said in their comment)
from supertokens-auth-react.
By simply using these two versions of the packages with a Next JS frontend project connected to Nest JS backend Project.
And Repeating the same scenario as @antoniodinovi
from supertokens-auth-react.
Could you try using version 0.32.1 of our supertokens-auth-react SDK and seeing if this issue is still there?
from supertokens-auth-react.
I tried it, still the same
from supertokens-auth-react.
Can you please share a demo app with the issue happening in it? We are unable to reproduce it.
from supertokens-auth-react.
From which directory should the signOut function be called ? I 'am importing it from
import { signOut } from "supertokens-auth-react/recipe/session";
from supertokens-auth-react.
You can call it from anywhere. For saving time, we will be unable to help you if you won't share some code that can reproduce this issue.
from supertokens-auth-react.
I'll try to create a small sample
from supertokens-auth-react.
Closing this issue cause no reply and we still can't reproduce it. But feel free to reopen
from supertokens-auth-react.
I found the Issue, When i start my Node JS backend locally on http://localhost:8003, i can normally sign out from my localhost Next JS frontend, but when i deployed my Backend on a server and connect to it i am not able to sign out anymore.
from supertokens-auth-react.
@cbadour you should check your appInfo config on the frontend and backend.
from supertokens-auth-react.
frontend appInfo:
appInfo = { appName: "simple-saas", apiDomain: "http://52.16.27.104:8003", websiteDomain: "http://localhost:3000", apiBasePath: "/auth", websiteBasePath: "/auth" }
backend appInfo:
appInfo = { appName: "simple-saas", apiDomain: "http://52.16.27.104:8003", websiteDomain: "http://localhost:3000", apiBasePath: "/auth", websiteBasePath: "/auth" }
Is there anything wrong with it ? it is the same
from supertokens-auth-react.
Okay this solution worked. But it is not recommended yes ? what should i do to fix it with cookie based auth ?
from supertokens-auth-react.
You would need to use the same base domain for website and api domain.
from supertokens-auth-react.
Related Issues (20)
- KeyError: 'access_token' in Flask Python backend (during sign in on NextJS frontend) HOT 6
- Add logo property for custom logos HOT 4
- [Discussion] OAuth 2.0 changes HOT 1
- Vite run fails: ThirdPartyEmailPasswordPreBuiltUI dependency could not be resolved when importing HOT 3
- Example Issue on "with-one-login-per-subdomain" HOT 4
- getAccessToken() always returning the old access token after refreshing the session HOT 11
- Component wrapped in `SessionAuth` doesn't get the latest session context HOT 2
- NextJS demo app not working HOT 11
- Abstract away navigation from the pre built UI
- NextJS warning for styling HOT 2
- Update Needed: SuperTokens Compatibility with Next.js 14 (App Router) HOT 2
- Fail to import getSuperTokensRoutesForReactRouterDom HOT 2
- Possibility to override "thirdPartyEmailPasswordDivider" style HOT 2
- Overriding password reset component results in the logo outside the container
- SSR support for SessionAuth HOT 3
- Nested redirects HOT 2
- Create Remix example for TPEP recipe HOT 2
- Example Electron App out of date HOT 2
- Doesn't work on React Router 6.4 (v6.22.3) HOT 1
- Reduce size of `/recipe/thirdparty` import by removing default logos from it
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supertokens-auth-react.