https://supertokens.com/
Join Discord
Hey, I've been using supertokens-auth-react with Vite and the styles don't seem to be loading in. Is...
t

texoport

almost 3 years ago
Hey, I've been using supertokens-auth-react with Vite and the styles don't seem to be loading in. Is there something I might be potentially doing wrong?
t
n
  • 2
  • 4
  • 93
Hi <@498057949541826571> For refreshing the session , I am able to use the same refresh token multip...
k

krrishan

over 1 year ago
Hi @rp_st For refreshing the session , I am able to use the same refresh token multiple times for getting new access token if I pass that as Authorization header Whereas if I pass same refresh token twice as cookie then it says Token theft detected and on third time it says : Unauthorized Can you please tell why the flow differs in both cases that is Authorziation header and cookie ?
k
r
  • 2
  • 56
  • 88
Hey, I am trying to get the first & last name when signing up with Google, but I cannot find it in t...
i

ItayElgazar

over 2 years ago
Hey, I am trying to get the first & last name when signing up with Google, but I cannot find it in the response. Is there any resource that can help me with this?
i
r
  • 2
  • 14
  • 88
Has anybody seen this error? API input error: Please make sure to pass valid URL query params 2023-0...
d

davido_k

over 2 years ago
Has anybody seen this error? API input error: Please make sure to pass valid URL query params 2023-02-25T22:28:00.818Z com.supertokens {t: "2023-02-25T22:28:00.818Z", message: "errorHandler: Started", file: "/Users/dave/Code/node_modules/supertokens-node/lib/build/supertokens.js:321:26" sdkVer: "13.0.2"} 2023-02-25T22:28:00.818Z com.supertokens {t: "2023-02-25T22:28:00.818Z", message: "errorHandler: Error is from SuperTokens recipe. Message: API input error: Please make sure to pass valid URL query params", file: "/Users/dave/Code/node_modules/supertokens-node/lib/build/supertokens.js:323:30" sdkVer: "13.0.2"} 2023-02-25T22:28:00.818Z com.supertokens {t: "2023-02-25T22:28:00.818Z", message: "errorHandler: Sending 400 status code response", file: "/Users/dave/Code/node_modules/supertokens-node/lib/build/supertokens.js:325:34" sdkVer: "13.0.2"} 2023-02-25T22:28:00.819Z com.supertokens {t: "2023-02-25T22:28:00.818Z", message: "Sending response to client with status code: 400", file: "/Users/dave/Code/node_modules/supertokens-node/lib/build/utils.js:133:14" sdkVer: "13.0.2"} I'm getting it when trying to implement Sign In with Apple. I'm POSTing to /api/auth/callback/apple a
state
and a
code
value Everything seems like it should work.
d
r
s
  • 3
  • 34
  • 88
I'm using Nextjs and embedding the forms in different pages. I've noticed that the forms are taking ...
c

chunkygoo.

about 3 years ago
I'm using Nextjs and embedding the forms in different pages. I've noticed that the forms are taking a while to show up. I suppose this is due to the ssr=false in dynamic?
c
r
  • 2
  • 27
  • 87
Hello, sorry to be a bother. I am setting up a 3rd party solution, and I have the button, can then g...
c

c9win.

almost 3 years ago
Hello, sorry to be a bother. I am setting up a 3rd party solution, and I have the button, can then get to the provider, sign in, and come back. This is where I am stuck. I can't figure out what I should come back to. No matter what I seem to do I just end up back on the signin page. Do I need to make a new express route to come back to and somehow set the login there? Or is there a specific supertoken url I'm supposed to come back to? I tried
[url]/auth/callback/[id]
along with many others. Nothing seems to run the
getProfileInfo
function or any other function I can find.
c
r
s
  • 3
  • 61
  • 85
CORS issue when using ngrok
z

zhef.

about 2 years ago
This is the response I get when I click the Sign In With Google button or Facebook (see attached images). My frontend is still hosted locally: http://localhost:3000 But my backend is forwarded with: https://fccd-****ngrok.io Supertokens Code: Backend Node (config.ts):
export const SuperTokensConfig: TypeInput = {
  supertokens: {
    connectionURI: "http://127.0.0.1:3567",
  },
  appInfo: {
    appName: "SuperTokens Demo App",
    apiDomain: "https://fccd-****.ngrok.io",
    websiteDomain: "http://localhost:3000",
},
...
Frontend React(config.tsx):
export const SuperTokensConfig = {
    appInfo: {
        appName: "SuperTokens Demo App",
        apiDomain: "https://fccd-****.ngrok.io",
        websiteDomain: "http://localhost:3000",
    },
Cors:
app.use(
  cors({
    origin: "http://localhost:3000",
    allowedHeaders: ["content-type", ...supertokens.getAllCORSHeaders()],
    methods: ["GET", "PUT", "POST", "DELETE"],
    credentials: true,
  })
);
z
r
  • 2
  • 35
  • 84
Hi, can I set the expire duration for access and refresh token? I want to set a short time for dev d...
a

anas

about 2 years ago
Hi, can I set the expire duration for access and refresh token? I want to set a short time for dev demo purpose
a
r
  • 2
  • 50
  • 84
I am getting `The JWKS endpoint did not contain any signing keys` the keys are at https://api.ploton...
h

hitesh

about 2 years ago
I am getting
The JWKS endpoint did not contain any signing keys
the keys are at https://api.ploton.app/api/jwt/jwks.json Any suggestions? Sorry this might not be relevant to ST. But this is driving me nuts.
h
r
  • 2
  • 4
  • 83
can one integrate supertokens with an existing database? For instance, Im running a prisma client co...
z

zebleck

over 2 years ago
can one integrate supertokens with an existing database? For instance, Im running a prisma client connected to a postgresql db, which has a schema for users. I would love if I could connect supertokens and my db somehow. For more context, Im using prisma to expose a graphql api, which I would like the auth to be used on
z
r
  • 2
  • 7
  • 83
Previous789Next

SuperTokens.com

SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).

Powered by