Code Monkey home page Code Monkey logo

Comments (18)

rishabhpoddar avatar rishabhpoddar commented on August 16, 2024 1

yea. this won't work with cookie based auth. Switch to using header based auth.

from supertokens-auth-react.

nkshah2 avatar nkshah2 commented on August 16, 2024

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.

nkshah2 avatar nkshah2 commented on August 16, 2024

Hi,

Closing this since we havent heard back from you, feel free to re-open if the issue still persists

from supertokens-auth-react.

cbadour avatar cbadour commented on August 16, 2024

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.

rishabhpoddar avatar rishabhpoddar commented on August 16, 2024

@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.

cbadour avatar cbadour commented on August 16, 2024

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.

rishabhpoddar avatar rishabhpoddar commented on August 16, 2024

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.

cbadour avatar cbadour commented on August 16, 2024

I tried it, still the same

from supertokens-auth-react.

rishabhpoddar avatar rishabhpoddar commented on August 16, 2024

Can you please share a demo app with the issue happening in it? We are unable to reproduce it.

from supertokens-auth-react.

cbadour avatar cbadour commented on August 16, 2024

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.

rishabhpoddar avatar rishabhpoddar commented on August 16, 2024

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.

cbadour avatar cbadour commented on August 16, 2024

I'll try to create a small sample

from supertokens-auth-react.

rishabhpoddar avatar rishabhpoddar commented on August 16, 2024

Closing this issue cause no reply and we still can't reproduce it. But feel free to reopen

from supertokens-auth-react.

cbadour avatar cbadour commented on August 16, 2024

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.

rishabhpoddar avatar rishabhpoddar commented on August 16, 2024

@cbadour you should check your appInfo config on the frontend and backend.

from supertokens-auth-react.

cbadour avatar cbadour commented on August 16, 2024

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.

cbadour avatar cbadour commented on August 16, 2024

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.

rishabhpoddar avatar rishabhpoddar commented on August 16, 2024

You would need to use the same base domain for website and api domain.

from supertokens-auth-react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.