https://supertokens.com/
Join Discord
Hi, is it possible to trigger sending the email verification mail through the backend sdks?
f

flixoflax

about 3 years ago
Hi, is it possible to trigger sending the email verification mail through the backend sdks?
f
r
  • 2
  • 13
  • 21
Auto save password chrome
d

djodjo02130

about 3 years ago
Auto save password chrome
d
r
  • 2
  • 11
  • 21
how mongodb schema looks like with supertokens?
a

aimproxy

over 3 years ago
how mongodb schema looks like with supertokens?
a
r
  • 2
  • 51
  • 21
My session keeps expiring I tried adding the frontend SDK to all of my pages but it doesn't seem to ...
λ

Λ C Ξ L X R D

over 3 years ago
My session keeps expiring I tried adding the frontend SDK to all of my pages but it doesn't seem to work
λ
r
  • 2
  • 56
  • 21
Hi everyone, I need support with django admin page. How do I make default login-password login on ad...
e

execreate

over 3 years ago
Hi everyone, I need support with django admin page. How do I make default login-password login on admin page work? Or if it is complicated, how do I integrate supertokens auth into django admin page?
e
r
s
  • 3
  • 6
  • 21
Can I share tokens somehow between subdomains? So let's say I have app.todolists.io and admin.todoli...
t

TheRien

over 3 years ago
Can I share tokens somehow between subdomains? So let's say I have app.todolists.io and admin.todolists.io so I can do some user management or whatever in the adminpanel. Can I share my login between those two apps so I don't have to reauthenticate? (and maybe I would have an account.todolists.io for language and theme preference for example, or to enable 2fa in the future ;-))
t
r
  • 2
  • 6
  • 21
I have a general question. How high of a priority is MongoDB login? It’s been quite a while since ...
d

dinko7

about 1 year ago
I have a general question. How high of a priority is MongoDB login? It’s been quite a while since I’ve seen any updates so I thought I might just ask here.
d
r
z
  • 3
  • 6
  • 20
Hi, I'm looking for info as I have to choose between cookie based/jwt login. But I cannot find right...
e

edubacco

over 1 year ago
Hi, I'm looking for info as I have to choose between cookie based/jwt login. But I cannot find right documentation. I have a multitenant, microservice ecosystem, with multiple (web) frontend apps and multiple apis. Once I login in a single frontend app, I must be authenticated in all frontend apps. I have a dedicated supertokens backend microservice (with core hosted internally) where I actually do authentication. No user is shared between different tenant. I cannot use (and I do not want to do it) supertokens SDK in all my backend microservices exposing api (they are a lot, in many different languages). What's the correct choice?
e
r
  • 2
  • 41
  • 20
I am testing a service using a hosted production supertokens using a valid sms key, and I need to pe...
l

listmalarinn

over 1 year ago
I am testing a service using a hosted production supertokens using a valid sms key, and I need to perform OTP sign in many times. However all of a sudden I stopped receiving sms messages and there are no logs in the console. I am wondering if this could be due to some default spam detection or if this could be due to some rate limiting against my phone number?
l
r
  • 2
  • 18
  • 20
Hello, I am trying to break my overrides out to be more modular, but I am having trouble typing them...
b

bolg55

over 1 year ago
Hello, I am trying to break my overrides out to be more modular, but I am having trouble typing them.
ts
import { db } from '@db/index';
import { users, profiles } from '@db/schema';

const thirdPartySignInUpOverride =
  (originalImplementation) => async (input) => {
    let response = await originalImplementation.thirdPartySignInUp(input);

    if (response.status === 'OK') {
      let { id, emails } = response.user;
      console.log('USER SIGNED UP', id);
      await db.transaction(async (trx) => {
        await trx.insert(users).values({
          id,
          email: emails[0],
        });
        await trx.insert(profiles).values({
          userId: id,
        });
      });

      // This is the response from the OAuth 2 provider that contains their tokens or user info.
      let providerAccessToken = response.oAuthTokens['access_token'];
      let firstName =
        response.rawUserInfoFromProvider.fromUserInfoAPI!['first_name'];

      if (
        response.createdNewRecipeUser &&
        response.user.loginMethods.length === 1
      ) {
        // TODO: Post sign up logic
      } else {
        // TODO: Post sign in logic
      }
    }
    return response;
  };

export default thirdPartySignInUpOverride;
I am really not sure of what the
originalImplementation
type should be. I have tried creating an interface from ThirdPartyPasswordless recipe, but that didn't work at all. Any ideas? Edit: Found a way to type using RecipeInterface. Not sure if this is documented? I had to search in discord and got lucky
b
r
  • 2
  • 1
  • 20
Previous495051Next

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