https://supertokens.com/
Join Discord
Hi, got a little issue with our Android app on react native for a few days. it can log in and get a...
t

teebot

over 3 years ago
Hi, got a little issue with our Android app on react native for a few days. it can log in and get an access token but when refreshing it logs us out this is what we changed before it started to happen : - "supertokens-node": "^8.5.0", + "supertokens-node": "^9.2.3", in the same deployment, we also set the cookieDomain to a wildcard to allow subdomains the weird thing is ios is fine
t
n
  • 2
  • 29
  • 48
Hello, I've been struggling to make the setup for Next.js with Edge Functions work. When following t...
y

yves404

almost 2 years ago
Hello, I've been struggling to make the setup for Next.js with Edge Functions work. When following the new Next.js setup instructions, using a session guard for an API route works until that route is an edge funtion. To reproduce I updated the example you have linked and added
export const runtime = 'edge';
to the user route https://github.com/supertokens/next.js/blob/canary/examples/with-supertokens/app/api/user/route.ts This now causes the error
Module not found: Can't resolve 'zlib'
(same for
querystring
and
crypto
). e.g. when running in dev or even during build. Which i think is strange since the middleware uses withSession without issues an is supposed to be the same edge runtime. The only "workaround" I found was to tell webpack to stop polyfilling (with config below). But that breaks things elsewhere. Have you (or someone else in here) had similar experiences or a better solution? Any recommendations going forward for Next.js Edge Functions?
const nextConfig = {
  webpack(config) {
    config.resolve.fallback = {
      ...config.resolve.fallback,
      crypto: false,
      querystring: false,
      zlib: false,
    };

    return config;
  },
}
y
r
p
  • 3
  • 9
  • 47
Hello, I'm using supertokens within my flask application using https://github.com/supertokens/supert...
j

justauser6119

about 2 years ago
Hello, I'm using supertokens within my flask application using https://github.com/supertokens/supertokens-python This is a short example of my code: from supertokens_python.framework.flask import Middleware app = Flask(__name__) init_supertokens(app) Middleware(app) CORS(app=app, origins=[app.config.get('WEBSITE_DOMAIN', '')], supports_credentials=True, allow_headers=["Content-Type"] + get_all_cors_headers()) I was trying to add flask_socketio using the following code:
from flask_socketio import SocketIO
SocketIO(app)
But than I came across asyncio issues(Added image of the error) It seems that there is a clash between the socket io event loop and the supertokens asyncio, can you please recommend the best practice of how to integrate flask_socketio while I already have supertokens installed on my flask? Thanks!
j
r
k
  • 3
  • 29
  • 47
I am having a new error now at iOS only, Supertokens throws this "Please provide a valid domain name...
r

robschilder

over 2 years ago
I am having a new error now at iOS only, Supertokens throws this "Please provide a valid domain name":
(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(r))?"http://"+i.host:"https://"+i.host:i.protocol+"//"+i.host}catch(e){}if(t.startsWith("/"))throw Error("Please provide a valid domain name");if(0===t.indexOf(".")&&(t=t.substr(1)),(-1!==t.indexOf(".")||t.startsWith("localhost"))&&!t.startsWith("http://")&&!t.startsWith("https://")){t="https://"+t;try{return new URL(t),e(t,!0)}catch(e){}}throw Error("Please provide a valid domain name")}(e)}},29996:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0
My app info:
const appInfo = {
  appName: 'Lokalist Business',
  apiDomain: GET_FRONTEND_URL(),
  websiteDomain: 'dashboard.lokalist.mobile.app',
  apiBasePath: '/api/auth',
  websiteBasePath: '/auth',
}
export const GET_FRONTEND_URL = () => {
  if (process.env.NEXT_PUBLIC_APP_STAGE === 'production' && process.env.NODE_ENV === 'production') {
    return 'https://dashboard.lokalist.nl'
  }
  if (process.env.NEXT_PUBLIC_APP_STAGE === 'development' && process.env.NODE_ENV === 'production') {
    return 'https://staging-dashboard.lokalist.nl'
  }

  return 'http://localhost:2001'
}
What could it be? The origin is
capacitor://localhost
r
r
n
  • 3
  • 10
  • 47
Hey all. My company is looking to transition over to SuperTokens. After looking at some things we se...
e

EJ

over 2 years ago
Hey all. My company is looking to transition over to SuperTokens. After looking at some things we see that our current auth solution uses PKCE, but it appears that SuperTokens does not support OAuth 2.0 flows, but that does not seem quite right to me. Would someone be able to point me towards the proper documentation to answer this question?
e
r
e
  • 3
  • 22
  • 47
Has anyone successfully run supertokens core on heroku with heroku's psql? I'm getting an issue wit...
z

zachequi

about 3 years ago
Has anyone successfully run supertokens core on heroku with heroku's psql? I'm getting an issue with drivers. The database url begins with
postgresql://
so it seems the
jdbc:
prefix is coming from someplace else?
Setting up PostgreSQL connection pool.
2022-10-07T02:04:20.842175+00:00 app[web.1]: Stopping SuperTokens...
2022-10-07T02:04:20.856938+00:00 app[web.1]: What caused the crash: Driver org.postgresql.Driver claims to not accept jdbcUrl, jdbc:postgres://ec2-107-23-76-12.compute-1.amazonaws.com:5432/....
z
n
j
  • 3
  • 7
  • 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

about 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
invalid_grant with override on thirdparty
m

Marques

over 3 years ago
invalid_grant with override on thirdparty
m
r
+2
  • 4
  • 159
  • 47
Hi, I'm looking for some clarification on the pricing change that seemed to happen March 18th. Is mu...
b

Bailey

over 1 year ago
Hi, I'm looking for some clarification on the pricing change that seemed to happen March 18th. Is multi-factor authentication support via SMS something that we will be charged for even if we aren't using SuperToken's sending services? We're using our own service to send the text message after overriding the
smsDelivery
function, under the
Passwordless
recipe, and we were not expecting the new $100/month price minimum.
b
r
  • 2
  • 8
  • 46
Previous151617Next

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