https://supertokens.com/
Join Discord
Thanks so much, it is working now but, is there any way to handle it directly from Backend? I mean, ...
r

rezaamya

about 3 years ago
Thanks so much, it is working now but, is there any way to handle it directly from Backend? I mean, if I detect that the session is expired on Backend, is there anyway to refresh it directly from there, instead of responding with "try refresh token" message to Frontend and getting request on auth/session/refresh? I know it is conceptually different from what SuperTokens is for, but I am trying to handle something else with described scenario.
r
r
  • 2
  • 12
  • 17
is there a way to embed a redirectToPath url argument during the email verification process?
a

arjun6436

about 3 years ago
is there a way to embed a redirectToPath url argument during the email verification process?
a
r
  • 2
  • 27
  • 17
I noticed that the Auth0 external id (`sub`) for the google provider was `google-oauth2|<ID>`. Now ...
n

n1ru4l

about 3 years ago
I noticed that the Auth0 external id (
sub
) for the google provider was
google-oauth2|<ID>
. Now with supertokens I am building this within
createNewSession
, for mapping the accounts.
const externalUserId = user.thirdParty ? `${user.thirdParty.id}|${user.thirdParty.userId}` : null;
I noticed that
user.thirdParty.id
, here is
google
and not
google-oauth2
. Is it safe for me to simply replace the
google|
part with
google-oauth2
, is the
<ID>
part of the auth0 sub stable?
n
r
  • 2
  • 6
  • 17
hi! why sometimes SuperTokens prints `Failed to fetch`?
y

yzs

about 3 years ago
hi! why sometimes SuperTokens prints
Failed to fetch
?
y
r
  • 2
  • 14
  • 17
Hi, We're authenticating our react app with supertokens react components successfully from SUBDOMAI...
t

teebot

over 3 years ago
Hi, We're authenticating our react app with supertokens react components successfully from SUBDOMAIN.DOMAIN.COM where our frontend lives and where the cookie is also set. Our main API and supertokens fastify middleware live on DOMAIN.COM/API and correctly set cookie and validate the requests The problem we have is that we have another authentication flow where customers will get a new supertokens cookie from DOMAIN.COM, they are supposed to be authenticated but the react auth component does not recognize it. Would you have a cue on how we could solve that?
t
r
  • 2
  • 29
  • 17
hi all, after a successful social registration/login, I want to retrieve the user's details like nam...
a

alisha08770

over 3 years ago
hi all, after a successful social registration/login, I want to retrieve the user's details like name, email etc, how can I achieve that? is there any reference for the same, thanks
a
r
  • 2
  • 5
  • 17
Fair, but it fails on me with the cookies
n

nazzrrg

over 3 years ago
Fair, but it fails on me with the cookies
n
p
  • 2
  • 49
  • 17
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
  • 17
Hi, I'm getting a 404 on `/auth/callback/github` when trying to implement social login, but it works...
f

firokat

over 3 years ago
Hi, I'm getting a 404 on
/auth/callback/github
when trying to implement social login, but it works fine with email/password. Am I supposed to set up the backend callback myself ? I am using express (node) for the backend.
f
n
  • 2
  • 24
  • 17
Hello all, how can I add metadata to my users? For a SaaS app I want to be able to add an orgId as w...
a

ankitmhn

over 3 years ago
Hello all, how can I add metadata to my users? For a SaaS app I want to be able to add an orgId as well as role. I thought I had found something for role but can't seem to find it again
a
r
  • 2
  • 4
  • 17
Previous666768Next

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