https://supertokens.com/
Join Discord
how do i connect supertokens container with my postgres container
k

kartikbazzad

over 3 years ago
how do i connect supertokens container with my postgres container
k
r
  • 2
  • 90
  • 10
Hi, I have a question. I am creating a login for a company dashboard. Right now anybody can sign up ...
k

kalibcheil0320

over 3 years ago
Hi, I have a question. I am creating a login for a company dashboard. Right now anybody can sign up and sign in, but I want that the user account has to be approved (just one time) before to log in. Is there a way to do it. I am using email and password authentication
k
r
u
  • 3
  • 21
  • 10
How to pass emailid in user context in passwordless login? when I pass emailid - it comes empty curl...
p

prachi8628

over 3 years ago
How to pass emailid in user context in passwordless login? when I pass emailid - it comes empty curl 'http://localhost:3002/auth/signinup/code/consume' \ -H 'Connection: keep-alive' \ -H 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="98", "Google Chrome";v="98"' \ -H 'fdi-version: 1.8,1.9,1.10,1.11,1.12' \ -H 'Content-Type: application/json' \ -H 'rid: passwordless' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.109 Safari/537.36' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'Accept: */*' \ -H 'Origin: http://localhost:3000' \ -H 'Sec-Fetch-Site: same-site' \ -H 'Sec-Fetch-Mode: cors' \ -H 'Sec-Fetch-Dest: empty' \ -H 'Referer: http://localhost:3000/' \ -H 'Accept-Language: en-GB,en;q=0.9' \ -H 'Cookie: sIRTFrontend=remove' \ --data-raw '{"userInputCode":"802331","deviceId":"urowSmkumH6t5DI/VMayKmM2sHmJdmjbAda6X/+2f3c=","preAuthSessionId":"PzcQXtL9_yC9bPrQCb68Ys5vCRPQQIwJG7YEdnkMnm8=","userContext":{"email":"prachi@xyz.com"}}' \ --compressed
p
r
  • 2
  • 20
  • 10
Hi, what could be the reason that accessTokenPayload is not refreshed on the frontend? I try to upda...
o

orszi7861

over 3 years ago
Hi, what could be the reason that accessTokenPayload is not refreshed on the frontend? I try to update AccessTokenPayleod in my custom middleware on backend:
const currAccessTokenPayload = req.session!.getAccessTokenPayload();
await req.session!.updateAccessTokenPayload({ newKey: 'newValue', ...currAccessTokenPayload });
and in frontend i cannot see it in the
const { accessTokenPayload } = useSessionContext();
, but in the sAccessToken cookie it already is
o
r
  • 2
  • 26
  • 10
ok so I was supposed to use the root project to download and setup the core and plugin interface pro...
j

Jalil Jarjanazy

over 3 years ago
ok so I was supposed to use the root project to download and setup the core and plugin interface projects. I tried to do it but couldn't because of my windows machine, you described something about wsl2 in the docs but I also couldn't do it
j
p
  • 2
  • 20
  • 10
Hello 👋 I'm self hosting supertokens using the following docker image: `registry.supertokens.io/su...
h

hobosapienz

about 1 year ago
Hello 👋 I'm self hosting supertokens using the following docker image:
registry.supertokens.io/supertokens/supertokens-postgresql:9.0.2
Everything works fine locally and on a VPS server with an IPv4 address. However, I am now trying out the set up on a server that only has an IPv6 address and I can not pull the image because it seems like the registry does not support IPv6. Are you aware of this? Is there a plan for it to support IPv6 or am I forced to find another way around this?
h
r
  • 2
  • 4
  • 9
Hey quick question. I thought I read it somewhere, but in the passwordless recipe, do the one time t...
t

ThrownException

about 1 year ago
Hey quick question. I thought I read it somewhere, but in the passwordless recipe, do the one time tokens only work when used at the device that caused the email to be sent?
t
r
  • 2
  • 7
  • 9
Hi, I currently use supertokens-node in my backend using passwordless authentication. When my client...
l

Lucas Dias

over 1 year ago
Hi, I currently use supertokens-node in my backend using passwordless authentication. When my client enters the OTP code sent via email, Supertokens checks if the entered code matches. If it's different, it throws an error INCORRECT_USER_INPUT_CODE_ERROR, and if the code is correct, it calls the createNewSession method of ThirdPartyPasswordless. I'd like to allow login for my email with the code 000000 always. I tried to override the method that performs this validation but couldn't succeed. I'd like to know which method performs this validation, if it's possible to override it, and how it would look in my code. thanks!
l
r
d
  • 3
  • 17
  • 9
Hello everyone, I am trying to figure out the correct way of implementing a single-tenant login flo...
d

davide.debernardi

over 1 year ago
Hello everyone, I am trying to figure out the correct way of implementing a single-tenant login flow with social login that can work with both web and mobile clients. At the moment I'm using supertokens-node
16.6.8
with core
7.x
. The issue I am facing is that web is working fine, but when trying to login with Google from an iOS client, google is returning
401
with
unauthorized_client
. I was reading the docs at the bottom of this message, but I have the following questions: 1. do I need to provide separate client configurations? 2. can I provide separate client configurations for all social login providers? 3. I see there is a parameter called
clientType
, is it just an arbitrary string? Thanks in advance for supporting! https://supertokens.com/docs/thirdpartypasswordless/custom-ui/thirdparty-login#social--sso-login-for-both-web-and-mobile-apps
d
r
  • 2
  • 20
  • 9
Hi Support, I would like to upgrade from Core v.4.9 to 9.0. (self-hosted postgresql) I get an erro...
m

mr.lurs

over 1 year ago
Hi Support, I would like to upgrade from Core v.4.9 to 9.0. (self-hosted postgresql) I get an error message about a foreign key constraint that does not exist. Is there a migration script I have to run, do I have to upgrade incrementally?
m
r
  • 2
  • 3
  • 9
Previous818283Next

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