https://supertokens.com/
Join Discord
Auth Redirection - is there a version of this that I can use for supertokens-web-js? Also have the s...
k

Kranos

over 2 years ago
Auth Redirection - is there a version of this that I can use for supertokens-web-js? Also have the same question for setting
useShadowDom: false
import SuperTokens from "supertokens-auth-react";
import ThirdPartyEmailPassword from "supertokens-auth-react/recipe/thirdpartyemailpassword";

SuperTokens.init({
    appInfo: {
        apiDomain: "...",
        appName: "...",
        websiteDomain: "...",
    },
    recipeList: [
        ThirdPartyEmailPassword.init({
            getRedirectionURL: async (context) => {
                if (context.action === "SUCCESS") {
                    if (context.redirectToPath !== undefined) {
                        // we are navigating back to where the user was before they authenticated
                        return context.redirectToPath;
                    }
                    return "/dashboard";
                }
                return undefined;
            }
        }),
    ]
});
k
r
  • 2
  • 1
  • 11
I know. Only I don't know how get data when user's signing up through a provider. I can do this in g...
w

weboux

over 2 years ago
I know. Only I don't know how get data when user's signing up through a provider. I can do this in getProfileInfo in custom provider but I don't have unnecessary requests during login and if user will change e. g. pseudonym, then data will change unnecessarily and the user may become frustrated and delete the account, so I can lose users and have unnecessary requests. Because of I want get data about users from providers only during sign up, but I don't have how do this.
w
r
  • 2
  • 3
  • 11
Hey everyone, I am using passwordless flow to send password/email OTP's. Now I want to do some check...
m

mib200

over 2 years ago
Hey everyone, I am using passwordless flow to send password/email OTP's. Now I want to do some checks in my backend in
consumeCode
section but I am unable to get the login type(phone/email). The reason I need login type is to determine what is the input I am getting and accordingly check for the relevant user in the backend. Can anyone please enlighten me here?
m
r
  • 2
  • 49
  • 11
I having some trouble with cookies and/or CORS and hope you guys can help. I have a web domain (test...
y

yarfink

over 2 years ago
I having some trouble with cookies and/or CORS and hope you guys can help. I have a web domain (test.com) and api domain (api.test.com). I have setup CORS on NestJS has per the docs, and things seem to work correctly (I can send requests from the web client to the api). However there are 2 problems. a) there's an OPTIONS preflight before every request (do I need to set
Access-Control-Max-Age
manually?) and b) my cookies are not being saved in my browser, probably because they are sub domain but I was under the assumption that sub domain cookies are still regarded as samesite?
y
r
  • 2
  • 30
  • 11
Hi, hope you all are fine ! I got ```{ message: "try refresh token" }``` on the `/auth/dashboard`
v

Val

over 2 years ago
Hi, hope you all are fine ! I got
{
message: "try refresh token"
}
on the
/auth/dashboard
v
n
+2
  • 4
  • 42
  • 11
Hi! I'm trying to test the Passwordless (SuperTokens 4.2) recipe on Postman, but I get a 400 respons...
a

Arne

almost 3 years ago
Hi! I'm trying to test the Passwordless (SuperTokens 4.2) recipe on Postman, but I get a 400 response: "Please provide exactly one of email or phoneNumber". I've followed the example on https://supertokens.com/docs/passwordless/testing/testing-with-postman. What could I be doing wrong?
a
r
  • 2
  • 2
  • 11
Hello, I am facing a CORS issue trying to test SuperTokens (FastAPI / React.js) I have followed all ...
j

Joe P

almost 3 years ago
Hello, I am facing a CORS issue trying to test SuperTokens (FastAPI / React.js) I have followed all of Super Tokens guides.
j
n
+2
  • 4
  • 41
  • 11
Hey guys, wanted to ask if there’s a way to host supertokens on aws? I have successfully hosted on l...
r

raoul97.

almost 3 years ago
Hey guys, wanted to ask if there’s a way to host supertokens on aws? I have successfully hosted on local host for not but we would like to host it on Aws in the future
r
r
  • 2
  • 1
  • 11
how to use thirdpartyemailpassword in tauri/sveltekit?
b

beemoe5

almost 3 years ago
how to use thirdpartyemailpassword in tauri/sveltekit?
b
r
  • 2
  • 6
  • 11
Hey guys, I am trying to implement a Telegram-like authentication where users are logged in via OTPs...
e

execreate

almost 3 years ago
Hey guys, I am trying to implement a Telegram-like authentication where users are logged in via OTPs as primary log-in factor + there is a possibility to add additional password protection as a second factor. Is that possible? I can see there is APIOptions parameter in the
create_code_post / consume_code_post
function calls for Passwordless recipe, which makes it possible to
get_session
using
api_options.request
. But there is no such parameter for the Email-Password recipe 🥲
e
n
  • 2
  • 12
  • 11
Previous737475Next

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