https://supertokens.com/
Join Discord
Hi! I'm currently trying to deploy supertokens and I get this error without much information `Error:...
c

crro

about 3 years ago
Hi! I'm currently trying to deploy supertokens and I get this error without much information
Error: no host specified in headers or uri
c
r
  • 2
  • 5
  • 24
How exactly does the doesSessionExist work?
a

abhisheksinghkapoor

about 3 years ago
How exactly does the doesSessionExist work?
a
r
  • 2
  • 49
  • 24
Google login brings me to a loading page with a spinner upon successful sign in
c

chunkygoo.

about 3 years ago
Google login brings me to a loading page with a spinner upon successful sign in
c
r
  • 2
  • 5
  • 24
Hi, is there any option/function in thirdparty/emailpassword/passwordless to send email after sucess...
i

IaS1506

about 3 years ago
Hi, is there any option/function in thirdparty/emailpassword/passwordless to send email after sucessfull registration?
i
r
  • 2
  • 5
  • 24
hello, I want to ask, can we run supertoken with our own ui design, not ui default ?
m

mas_dwi

about 3 years ago
hello, I want to ask, can we run supertoken with our own ui design, not ui default ?
m
r
  • 2
  • 63
  • 24
Hi, how do I redirect my page to login page in a backend route protected by verify_session. I am usi...
h

hermit908

about 3 years ago
Hi, how do I redirect my page to login page in a backend route protected by verify_session. I am using Flask and Plain JS frontend. So if a user navigates to domain.com/account , if session is not valid, I'd want to redirect to /login . Right now, I just get a "{"message":"unauthorised"}" with 401 response.
h
r
  • 2
  • 4
  • 24
I found an edge case in our Auth0 to SuperTokens migration. Users that do not yet exist within Supe...
n

n1ru4l

over 3 years ago
I found an edge case in our Auth0 to SuperTokens migration. Users that do not yet exist within SuperTokens might have forgotten their passwords. So we need a way for creating their supertokens account upon doing a password reset request 🤔 What I have in mind is the following: 1. Overwrite
getUsersByEmail
2. Do a RPC call to our services/auth0 for checking whether an email/password user with a given email exists 3. if he does not exist use
originalImplementation.emailPasswordSignUp
for creating the user with a random password 4. return that newly created user from the
getUsersByEmail
function I think one problem here is that
getUsersByEmail
is not exclusively used by the reset password functionality - I can observe that function being called for a basic login attempt as well. 🤔 As I workaround I figured out that using the
userContext
might work - though it seems a bit like an hacky attempt.
...
async getUsersByEmail(input) {
  // In case this does not happen as part of the reset password token flow we just use the default implementation.
  if (
    input.userContext?.['_default']?.['request']?.['original']?.['url'] !==
    '/api/auth/user/password/reset/token'
  ) {
    return originalImplementation.getUsersByEmail(input);
  }
 ...
Does that seem reasonable? Are there any better alternatives? Did anyone do something similar before?
n
k
r
  • 3
  • 21
  • 24
Hey I have a issue with my capacitor ios app again. Here is the debug log from the phone. It logs in...
c

codingtomato

over 3 years ago
Hey I have a issue with my capacitor ios app again. Here is the debug log from the phone. It logs in normally and cannot hold session somehow. Any ideas?
log
c
r
  • 2
  • 70
  • 24
Hey all, I am setting up Supertokens with Next.Js project and Flask. So my backend APIs' are running...
r

rajhans84

almost 4 years ago
Hey all, I am setting up Supertokens with Next.Js project and Flask. So my backend APIs' are running on Python flask on Http://localhost:5000/ and Next.js App is running on http://localhost:3000/. Using Managed service as Core. Followed Next.Js steps and can see the login page but when trying to signup or login I am getting CORS errors. Questions: Do I need any changes to Flask to make backend work or not? How to fix CORS errors? Please advise. Thanks in Advance.
r
r
k
  • 3
  • 114
  • 24
Hey, I have a question about the website domain with multipe frontends. Refering to the docs: ``` On...
l

Luca

almost 2 years ago
Hey, I have a question about the website domain with multipe frontends. Refering to the docs:
On the backend, you should set the websiteDomain to be your main domain (example.com if your sub domains are sub.example.com), and then you want to override the sendEmail functions to change the domain of the link dynamically based on the tenant ID supplied to the sendEmail function. See the Email Delivery section in our docs for how to override the sendEmail function.
for what is this websiteDomain used for? I have the following domain setup: a.domainA.com -> uses api.domainA.com b.domainA.com -> uses api.domainA.com so i should set websiteDomain to domainA.com. But i have another frontend: domaniB.com -> used api.domainA.com what to do now here?
l
r
  • 2
  • 7
  • 23
Previous555657Next

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