https://supertokens.com/
Join Discord
can you help me with this first - How to add hasura custom claims , how it will work out for JWT'...
y

Yogeshwar

over 3 years ago
can you help me with this first - How to add hasura custom claims , how it will work out for JWT's , since docs mentioned below are using accessTokenPayload https://supertokens.com/docs/passwordless/hasura-integration/with-jwt#3--add-custom-claims-to-the-jwt
y
r
  • 2
  • 12
  • 4
Does anyone know why `const {userId} = useSessionContext();` would return `DEFAULT_USER_ID`?
a

Astro

over 3 years ago
Does anyone know why
const {userId} = useSessionContext();
would return
DEFAULT_USER_ID
?
a
r
  • 2
  • 29
  • 4
We're using NodeJS supertokens SDK + managed service in production and as of today all backend verif...
m

mrserif

over 3 years ago
We're using NodeJS supertokens SDK + managed service in production and as of today all backend verifySession() middleware calls are returning 401. Is something wrong with the managed service?
m
r
  • 2
  • 60
  • 4
When trying to run the docker command listed on docker hub, I get this error: `| ERROR | pid: cbf2ff...
t

The Silent Memer....

over 3 years ago
When trying to run the docker command listed on docker hub, I get this error:
| ERROR | pid: cbf2ff35-f505-4059-b612-ce85dd43a15a | [http-nio-0.0.0.0-3567-exec-1] thread | io.supertokens.webserver.api.core.NotFoundAPI.service(NotFoundAPI.java:44) |
I'm running on an ubuntu VPS if that would affect anything.
t
r
  • 2
  • 6
  • 4
hello this code is taken from here : supertokens-auth-react/examples/with-sign-in-up-split-emailpass...
t

tajin_malsou9a

over 3 years ago
hello this code is taken from here : supertokens-auth-react/examples/with-sign-in-up-split-emailpassword/
EmailPasswordSignUp_Override: ({ DefaultComponent, ...props }) => {
                        /* if the user visits the /signup route, we want to show the
                         default implementation. If thy visit the /signin?show=signup
                         route, we want to show the sign in UI, so we redirect them to /signin
                         which shows the sign in UI.
                        */
                        const [showUI, setShowUI] = useState(false);
                        useEffect(() => {
                            if (window.location.pathname === "/signup") {
                                setShowUI(true);
                            } else if (window.location.pathname === "/signin") {
                                window.location.href = "/signin";
                            } else {
                                setShowUI(true);
                            }
                        }, []);
                        if (showUI) {
                            return <DefaultComponent {...props} />;
                        } else {
                            return null;
                        }
                    },
is this part of the comment correct? "If thy visit the /signin?show=signup route, we want to show the sign in UI, so we redirect them to /signin which shows the sign in UI." I'm confused
t
r
  • 2
  • 3
  • 4
Hi, hope I'm not a bother. I am trying to implement my own SDK for use with Kotlin, however there is...
i

Idriz

over 3 years ago
Hi, hope I'm not a bother. I am trying to implement my own SDK for use with Kotlin, however there is some behavior I'd like to know about. https://app.swaggerhub.com/apis/supertokens/CDI/2.13.0#/EmailPassword%20Recipe/emailPasswordSignin What status code response is sent in the case of an incorrect password here? Is it the 400, or the 401(but this one seems to be for invalid API keys)?
i
r
  • 2
  • 5
  • 4
Hey all! I have 2 quick questions. 1. How does the managed version scale? If I post my SaaS on 3 di...
d

Deleted User

over 3 years ago
Hey all! I have 2 quick questions. 1. How does the managed version scale? If I post my SaaS on 3 different social media sites and get hundreds or thousands of signups within just a few minutes could it handle that? I doubt I'd actually reach those numbers but before I get invested I'd like to know that it could hypothetically be handled. 2. How difficult is it to switch from managed to self-hosted? Is it just a matter of changing connection uri and api key or is there a more complex process I'm not anticipating?
d
r
  • 2
  • 4
  • 4
Hi. Passwordless Recipe. Why is the magic link of the form <domain>/auth/verify?rid=passwordless&pre...
p

pepegc

over 3 years ago
Hi. Passwordless Recipe. Why is the magic link of the form /auth/verify?rid=passwordless&preAuthSessionId=# ? i.e. Why is the linkCode an anchor and not a query param? I cannot manage to use it this way and I don't understand why it is like this.
p
r
p
  • 3
  • 25
  • 4
I docker pull registry.supertokens.io/supertokens/supertokens-postgresql then run docker run this c...
a

angeluuuu

over 3 years ago
I docker pull registry.supertokens.io/supertokens/supertokens-postgresql then run docker run this command
a
r
  • 2
  • 13
  • 4
Ok, sorry if this is a naive question! I want to restrict the list of users that can register for my...
z

zach_h9554

over 3 years ago
Ok, sorry if this is a naive question! I want to restrict the list of users that can register for my app, invite-only style. Is there a best practice way to implement this? Could I do this as a post-authentication hook or does this need to be in an override?
z
r
b
  • 3
  • 24
  • 4
Previous123124125Next

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