https://supertokens.com/
Join Discord
hi all, after a successful social registration/login, I want to retrieve the user's details like nam...
a

alisha08770

over 3 years ago
hi all, after a successful social registration/login, I want to retrieve the user's details like name, email etc, how can I achieve that? is there any reference for the same, thanks
a
r
  • 2
  • 5
  • 17
Hello all, how can I add metadata to my users? For a SaaS app I want to be able to add an orgId as w...
a

ankitmhn

over 3 years ago
Hello all, how can I add metadata to my users? For a SaaS app I want to be able to add an orgId as well as role. I thought I had found something for role but can't seem to find it again
a
r
  • 2
  • 4
  • 17
I am working currently on the multitenancy as subdomain in my app and I am not getting the session w...
s

Sekai

over 1 year ago
I am working currently on the multitenancy as subdomain in my app and I am not getting the session when authorizing the role of the user it doesn't get pass the verifySession. Even though I am signed in correctly and I am using the prebuiltUI as well. I will attach the debug log and the signed network log
s
r
  • 2
  • 38
  • 16
Hey, I have a problem wih usiing the passwordless recipe. I am using the python SDK with fastapi in ...
l

Luca

over 1 year ago
Hey, I have a problem wih usiing the passwordless recipe. I am using the python SDK with fastapi in my backend, custom ui (supertokens-web-js) on the frontend and a selfhosted core. All are updated to the latest version. (0.18.7 / 0.9.1 / 7.0). Here be backend config for the passwordless recipe:
python
passwordless.init(passwordless.ContactConfig(
        contact_method='EMAIL'),
        flow_type='USER_INPUT_CODE_AND_MAGIC_LINK',
    )
And this is the rontend config:
ts
import SuperTokens from 'supertokens-web-js';
import Session from 'supertokens-web-js/recipe/session';
import Passwordless from 'supertokens-web-js/recipe/passwordless'

const initSupertokens = () => {
    SuperTokens.init({
        appInfo: {
            apiDomain: process.env.NEXT_PUBLIC_BACKEND_HOST!,
            apiBasePath: "/auth",
            appName: "CM",
        },
        recipeList: [
            Session.init(),
            Passwordless.init({}),
        ],
    });
}

export default initSupertokens
after calling
import { createCode } from "supertokens-web-js/recipe/passwordless";
...
const resp = await createCode({email})
i am getting
res.status = OK
Also my backend loggs:
"POST /auth/signinup/code HTTP/1.1" 200 OK
and returns:
json
{
    "status": "OK",
    "deviceId": "cY1ju3u88Tl7IDYc/JBf3duXTHoTbeAz5ujFr0ThODI=",
    "preAuthSessionId": "2S0TLFvqwGH9jX7KRM-IBnS4oP8nd8e-JkmsB0JnilY",
    "flowType": "USER_INPUT_CODE_AND_MAGIC_LINK"
}
But i am not getting any email. I tested several email addresses.
l
r
  • 2
  • 22
  • 16
Hi, I want to appned a redirect Url in the magicLink based on the url from which user has come for a...
a

anurag06557

over 1 year ago
Hi, I want to appned a redirect Url in the magicLink based on the url from which user has come for authentication , so how can i get that extra parameter from the frontend so that i can alter the magicLink. we are using both FE and BE supertoken sdk. For appending url in the magic link i will be using the sendRawEmail function and override it, but url that is to be appended is not fix, it should depend on some value that will be coming from frontend. so how can i pass from frontend and get at backend. I am using THIRDPARTY_PASSWORDLESS
a
r
  • 2
  • 21
  • 16
Hi, I would like to use nock to mock the API call behaind `thirdPartySignInUpPOST` because of some a...
i

idanto

over 1 year ago
Hi, I would like to use nock to mock the API call behaind
thirdPartySignInUpPOST
because of some account linking logic we do after it that I would like to test. can you help me understand how the request path looks like and what should be an example of the response? I'm going to use nock to do that if it makes any difference for you
i
r
  • 2
  • 2
  • 16
https://try.supertokens.com/api/jwt/jwks.json Is this the correct URL to get JWKS?
v

vvelisoju

over 1 year ago
https://try.supertokens.com/api/jwt/jwks.json Is this the correct URL to get JWKS?
v
r
  • 2
  • 4
  • 16
Hi team, I am trying to integrate supertokens in a ionic + angular app, the integration seems to be...
a

abhisheksinghkapoor

over 1 year ago
Hi team, I am trying to integrate supertokens in a ionic + angular app, the integration seems to be failing at a point where I am trying to make a axios call, and the status comes to be 440, with cookie status being returned as deleted, on checking the node-modules > supertokens-website > lib > axios.js file, I found out that the url and AuthHttpRequest.apiDomain are same, but still the cookies are deleted and api is still returning 440, can someone help me with what I am doing incorrect
a
r
  • 2
  • 5
  • 16
Hi I'm using SuperTokens with NextJS. I am trying to protect a SSR page, so I implemented this code ...
k

kyomster

over 1 year ago
Hi I'm using SuperTokens with NextJS. I am trying to protect a SSR page, so I implemented this code
const { session, hasToken, hasInvalidClaims } = await getSSRSession();

    if (!session) {
        if (!hasToken) {
            return redirect("/auth");
        }

        if (hasInvalidClaims) {
            return <SessionAuthForNextJS />;
        } else {
            return <TryRefreshComponent />;
        }
    }
But it redirect to /auth and therefore after I am back to the / page instead of the page from with I called redirect. How can I do so that it redirect to the previous page ? Thanks.
k
r
  • 2
  • 5
  • 16
Is there a way to auto set primary user on sign-up? Otherwise I override signInUp on backend and cal...
i

ilbarbarossa

almost 2 years ago
Is there a way to auto set primary user on sign-up? Otherwise I override signInUp on backend and call createPrimaryUser
i
r
  • 2
  • 20
  • 16
Previous484950Next

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