https://supertokens.com/
Join Discord
Multiple supertokens instances in a single express application?
n

Nightlight

almost 3 years ago
Is it possible to add multiple supertoken instances in a single express application? The documentation only mentions a single instance using supertokens.init(). I'm wanting to set up a multi-tenant type of architecture with a single webserver and multiple cores.
n
r
  • 2
  • 37
  • 18
docker install how to open admin panel with docker ?
p

productdevbook

about 3 years ago
docker install how to open admin panel with docker ?
p
r
  • 2
  • 1
  • 18
I need to redirect to auth if a user is not logged in, I can use `ThirdPartyEmailPassword` to wrap m...
m

mwill8886

over 3 years ago
I need to redirect to auth if a user is not logged in, I can use
ThirdPartyEmailPassword
to wrap my components but when I try to access a protected route including url search params, only the base of the route is send to the auth page as the redirectToPath and does not include my url search params. I'd prefer not to roll my own wrapper, so is there a way to configure
ThirdPartyEmailPassword
to include url search params in the redirectToPath? If not, I figure i have to create my own wrapper that checks if the user is logged in. I've tried importing
supertokens-website
into my NextJS app,
import SuperTokens from 'supertokens-website'
, however whenever I try to access
SuperTokens.doesSessionExist()
i get an error stating that SuperTokens is undefined. I have initialized SuperTokens in the _app.ts file. I can use
supertokens-auth-react
but not
supertokens-website
.
m
r
  • 2
  • 7
  • 18
Hi team, I'm actually facing a problem.. I have a postgres instance running on a seperate container,...
u

24kmagic6086

over 3 years ago
Hi team, I'm actually facing a problem.. I have a postgres instance running on a seperate container, and I want to connect supertokens container to the postgres container. I think I am facing issue at POSTGRESQL_HOST.. This is my docker command: sudo docker run -p 3567:3567 -e POSTGRESQL_USER="postgres" -e POSTGRESQL_PASSWORD="postgres" -e POSTGRESQL_HOST="host" -e POSTGRESQL_PORT="5432" -e POSTGRESQL_DATABASE_NAME="supertokens" -d registry.supertokens.io/supertokens/supertokens-postgresql This is my postgres docker-compose.yml: version: '3' services: db: image: postgres:latest environment: POSTGRES_USER: user POSTGRES_PASSWORD: pass POSTGRES_DB: supertokens ports: - 5432:5432 networks: - db restart: unless-stopped supertokens: image: registry.supertokens.io/supertokens/supertokens-postgresql depends_on: - db ports: - 3567:3567 environment: POSTGRESQL_CONNECTION_URI : postgresql://user:pass@db/supertokens networks: - db restart: unless-stopped networks: db: driver: bridge
u
r
e
  • 3
  • 10
  • 18
If I want to be able to update user roles and permissions on each access token refresh request, whic...
e

execreate

over 3 years ago
If I want to be able to update user roles and permissions on each access token refresh request, which method in which recipe should I overwrite? Do you have relevant documentation on that? Is it
regenerate_access_token
method of session recipe?
e
r
  • 2
  • 19
  • 18
How is the sIdRefreshToken used? Is it essential? Docs don’t give much detail
p

pitchash

over 3 years ago
How is the sIdRefreshToken used? Is it essential? Docs don’t give much detail
p
r
  • 2
  • 22
  • 18
Hi all, I'm new to SuperTokens. I'm using PasswordLess authentication. I have followed the recipe....
w

wendytrns

over 1 year ago
Hi all, I'm new to SuperTokens. I'm using PasswordLess authentication. I have followed the recipe. I do have a nice Sign In which is quite straightforward and works well, thanks for that! However, I don't have any *SIGN UP * and I don't get why. I added the first users through the Supertokens UI. I'm using NextJS. My back-end config is the following :
return {
    debug: true,
    framework: "custom",
    supertokens: {
      connectionURI:
        process.env.SUPERTOKENS_URI || "https://try.supertokens.com",
      apiKey: process.env.SUPERTOKENS_API_KEY,
    },
    appInfo: appInfo("backend"),
    recipeList: [
      PasswordlessNode.init({
        flowType: "MAGIC_LINK",
        contactMethod: "EMAIL",
        emailDelivery: {...}
      }),
      SessionNode.init(),
      Dashboard.init(),
      UserRoles.init(),
      UserMetadata.init(),
    ],
    isInServerlessEnv: true,
  };
};
Could somebody help me?
w
r
  • 2
  • 22
  • 17
Hello everyone, I'm new to SuperToken. I'm exploring whether that super token is a suitable solution...
j

jaykaneriya

over 1 year ago
Hello everyone, I'm new to SuperToken. I'm exploring whether that super token is a suitable solution for auth in our project. We are creating lot of white label applications under one login/signup process. every white label application has its own react native mobile application and nextjs web application. we also provide custom domain masking as well. We want login flow like : [username or email or mobile & password] or google/facebook Required signup flow: [email or mobile + otp] or google/facebook A problem is on the web we want to create sso.example.com for sharing one login/signup flow. is there any way I can share my session while redirecting to another domain(many cases not a subdomain) Thanks for even reading all these 😅 .
j
r
  • 2
  • 35
  • 17
Can supertokens be used with a persistent sqlite db file, instead of postgresql?
d

daylululu

over 1 year ago
Can supertokens be used with a persistent sqlite db file, instead of postgresql?
d
r
  • 2
  • 3
  • 17
I am working currently on the multitenancy as subdomain in my app and I am not getting the session w...
s

Sekai

almost 2 years ago
I am working currently on the multitenancy as subdomain in my app and I am not getting the session when authorizing the role of the user it doesn't get pass the verifySession. Even though I am signed in correctly and I am using the prebuiltUI as well. I will attach the debug log and the signed network log
s
r
  • 2
  • 38
  • 17
Previous707172Next

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