https://supertokens.com/
Join Discord
Heyy, We have a nest.js application deployed on Railway. In the frontend we have next.js deployed ...
r

rayhan_rahat

over 2 years ago
Heyy, We have a nest.js application deployed on Railway. In the frontend we have next.js deployed on Vercel. In the backend CORS is set like this
app.enableCors({
    origin: [
      '*',
      'http://localhost:3001',
      'http://localhost:3000',
      'https://*.vercel.app',
      'https://*.vercel.app/*',
    ],
    allowedHeaders: ['content-type', ...supertokens.getAllCORSHeaders()],
    credentials: true,
  });
But for all the vercel preview builds, we can't test the app because of CORS issues. Any Idea how to fix it.??
r
r
  • 2
  • 16
  • 47
Hi, I'm getting a 401 : Unauthorized message while calling the refresh and sign out api's. Here are ...
g

ggi_d

about 3 years ago
Hi, I'm getting a 401 : Unauthorized message while calling the refresh and sign out api's. Here are the cookies being set in the request.
g
r
  • 2
  • 9
  • 47
Hey there, it seems SuperTokens doesn't have a PHP SDK?
j

justagl1tch

about 3 years ago
Hey there, it seems SuperTokens doesn't have a PHP SDK?
j
r
  • 2
  • 4
  • 47
hello, what do i type here to use my own smtp configuration ? i have an email address with password ...
k

kevin.millot

over 3 years ago
hello, what do i type here to use my own smtp configuration ? i have an email address with password already if i need to send from that email address
js
EmailPasswordNode.init({
        emailDelivery: {
          service: new STMPService({
            smtpSettings: {
              host: "smtp.office365.com",
              password: process.env.EMAIL_PW,
              port: 587,
              from: {
                name: "",
                email: process.env.EMAIL_ADDRESS,
              },
              secure: true
            },
          })
        },
      }),
k
r
  • 2
  • 11
  • 47
Hi there, Do you have a recipe for login with Slack? I am using Flutter frontend and python(FastAPI...
y

yogeshksoni

over 1 year ago
Hi there, Do you have a recipe for login with Slack? I am using Flutter frontend and python(FastAPI) backend.
y
r
  • 2
  • 35
  • 46
Hello. I'm getting started on supertokens. How much memory is necessary for a the service database ?
s

sr.amorzinho

over 1 year ago
Hello. I'm getting started on supertokens. How much memory is necessary for a the service database ?
s
r
  • 2
  • 3
  • 46
I am setting up something wrong with supertoken and I have no clue how to fix this? Does anybody hav...
s

Sekai

over 1 year ago
I am setting up something wrong with supertoken and I have no clue how to fix this? Does anybody have a clue? My first error in the console.log is this in the attached image.
s
r
  • 2
  • 13
  • 46
Hi, is it possible to run supertokens-core with sqlite database? I found this message from before: h...
m

mateusz_52196

almost 2 years ago
Hi, is it possible to run supertokens-core with sqlite database? I found this message from before: https://discord.com/channels/603466164219281420/1067986309248995430/1068195011298082876 but there is no direct answer (or probably I don't understand something). In dockerhub I found only recent images for mysql, postgresql and mongo. Docs also doesn't describe how to run with sqlite. My usecase is: I'm creating small app for ~500 users and app is using sqlite as its main datastore, because traffic is so small that it is sufficient. I would like to avoid running postgresql server only for supertokens. Instead of that I would like to use sqlite. I found this in google https://supertokens.com/docs/community/configuration/database/sqlite but this options are not mentioned here https://supertokens.com/docs/community/configuration/core so I'm not sure where I should put this configuration. Is there some additional documentation I missed? 🙂
m
r
  • 2
  • 2
  • 46
getting this error in the console on the client side Access to fetch at 'https://api-development.bi...
b

bitcoinrippin

about 2 years ago
getting this error in the console on the client side Access to fetch at 'https://api-development.bitcoinerfreelance.com/auth/session/refresh' from origin 'https://development.bitcoinerfreelance.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. Here is my Cors implementation on the back end app.use( cors({ origin: websiteDomain, allowedHeaders: ["content-type", ...supertokens.getAllCORSHeaders()], methods: ["GET", "PUT", "POST", "DELETE"], credentials: true, }) ); and my Supertokens init supertokens.init({ framework: "express", supertokens: { // TODO AARON - in production need to swap this with the connection for supertokens connectionURI: configData.superTokens.connectionURI, apiKey: configData.superTokens.apiKey, }, appInfo: { appName: "Bitcoiner Freelance", apiDomain: apiDomain, websiteDomain: websiteDomain, apiBasePath: "/auth", websiteBasePath: "/auth", },
b
r
  • 2
  • 9
  • 46
I want to create a new user context that includes a request in golang, how can i do that?
e

Erick

over 2 years ago
I want to create a new user context that includes a request in golang, how can i do that?
e
r
  • 2
  • 15
  • 46
Previous171819Next

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