https://supertokens.com/
Join Discord
I'm attempting to follow the instructions here: https://supertokens.com/docs/emailpassword/pre-built...
v

Vaune_

over 2 years ago
I'm attempting to follow the instructions here: https://supertokens.com/docs/emailpassword/pre-built-ui/setup/frontend I have the front, back, and core implemented, but I'm running into a hurdle adding the routes to my application. The docs indicate I can use
SuperTokens.getRoutingComponent
however, my TS is saying this function doesn't exist.
v
a
r
  • 3
  • 20
  • 15
``` backend_2 | 2023/03/16 13:36:52 http: response.WriteHeader on hijacked connection from g...
r

rob197

over 2 years ago
backend_2         | 2023/03/16 13:36:52 http: response.WriteHeader on hijacked connection from github.com/supertokens/supertokens-golang/supertokens.SendNon200Response (utils.go:188)
backend_2         | 2023/03/16 13:36:52 http: response.Write on hijacked connection from github.com/supertokens/supertokens-golang/supertokens.(*basicWriter).Write (doneWriter.go:69)
r
r
s
  • 3
  • 21
  • 15
Using supertokens with django So I have an `IdP` which runs as a `Go` API server and talks to the s...
m

mayankgopronto

over 2 years ago
Using supertokens with django So I have an
IdP
which runs as a
Go
API server and talks to the supertokens core and all authentication happens via the IdP. We have an existing
django
-
drf
app which currently does regular django session authentication and sets the
sessionid
in the cookie. In the new implementation, where I am trying to slowly migrate all the services to supertokens, all the requests will contain the supertokens'
access
and
refresh
token. So I am planning to write a django middleware which will call the
IdP's
session-verify API . And if successful, I can set the django
User
object. I was looking through the python SDK which has a plugin for
django
. Is there any way I can achieve this using the SDK? I do not want to do
supertokens.init
in my django app to maintain abstraction. Is this approach feasible or would you suggest I go with the
python
sdk and use the supertokens backend in the django server too?
m
r
  • 2
  • 4
  • 15
Error on deployment I've been self-hosting supertokens core using supertokens-postgresql v4.3 docke...
m

mayankgopronto

over 2 years ago
Error on deployment I've been self-hosting supertokens core using supertokens-postgresql v4.3 docker image on kubernetes, with relative ease for a while now. Today when I am trying to deploy it on a new cluster I am faced with this error. Any idea what could be wrong? I am not passing any port number, just passing in the API_KEYS and POSTGRESQL_CONNECTION_URI through environment variables.
What caused the crash: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `int` from String "tcp://10.2.124.128:3567": not a valid `int` value
 at [Source: (File); line: 194, column: 7] (through reference chain: io.supertokens.config.CoreConfig["port"])
m
r
  • 2
  • 14
  • 15
Hi 👋 do you know how to combine Supertokens and Nextjs when internalizationed routing (https://next...
u

ベニマル

over 2 years ago
Hi 👋 do you know how to combine Supertokens and Nextjs when internalizationed routing (https://nextjs.org/docs/advanced-features/i18n-routing) is used? 🙂 For the moment, I can only use the path
my.domain.local/auth
while I would like to use also
my.domain.local/[lng]/auth
(*e.g. *`my.domain.local/fr/auth`) but also
my.domain.local/auth
(default route) in an automatic way as NextJS does when using the intl routing feature.
u
r
  • 2
  • 5
  • 15
Hi! The Dashboard is pretty cool, but I have a question about how it is intended to be used. It is ...
d

dleangen

almost 3 years ago
Hi! The Dashboard is pretty cool, but I have a question about how it is intended to be used. It is served by the backend, and the backend is protected by CORS. It looks like the Dashboard is intended to be accessed directly via the browser, and not through an API call. However, if I access directly from my browser, then no origin is provided with the request, which means that it gets rejected by CORS. I tested by disabling CORS, and can access the Dashboard as expected. I'm not sure how to resolve this issue because I can't seem to find a way to disable CORS just for that single route (unless I am misunderstanding how the configuration works). Here is my CORS config, **which is general to all routes due to the use of `app.use(middleware())`**:
SuperTokens.init(SuperTokensInitConfig);
admin.initializeApp();

const app = express();

const whitelist: string[] = [
  websiteDomain,
  'http://localhost:4201',
  'http://localhost:4202',
  'http://localhost:4203',
  ... etc.
];

app.use(cors({
  origin: function(origin, callback) {
    if (origin && whitelist.indexOf(origin) !== -1) {
      callback(null, true);
    } else {
      callback(new Error(`Origin ${origin} not permitted due to CORS policy`));
    }
  },
  allowedHeaders: ['content-type', ...SuperTokens.getAllCORSHeaders()],
  credentials: true,
}));

app.use(middleware());
app.use(errorHandler());

export default app;
d
r
n
  • 3
  • 24
  • 15
Docs question: I'm using Phoenix framework on Elixir which doesn't have library integration built. I...
l

lamp-town-guy

almost 3 years ago
Docs question: I'm using Phoenix framework on Elixir which doesn't have library integration built. Is there a place for docs how to start from zero? I don't promise anything but Appwrite has SDK generator and I've built Elixir generator part for them while trying it. It's not in the MR yet though.
l
n
r
  • 3
  • 10
  • 15
Hi. I have a problem while doing fetch from the front end to my backend I get 401 non-authorize. In...
l

Leonxx

almost 3 years ago
Hi. I have a problem while doing fetch from the front end to my backend I get 401 non-authorize. In docs, it said that if 8using fetch no actions are needed, what I'm missng
l
p
  • 2
  • 41
  • 15
is there a way to list all users?
v

Vrl

almost 3 years ago
is there a way to list all users?
v
r
  • 2
  • 1
  • 15
what version of supertokens is compatible with asgiref==3.5?
f

fayzul_

almost 3 years ago
what version of supertokens is compatible with asgiref==3.5?
f
r
k
  • 3
  • 7
  • 15
Previous535455Next

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