https://supertokens.com/
Join Discord
Hi, I was wondering how to create a custom signin/signup UI for a NextJS integration. I am currentl...
m

michael_pxr

over 1 year ago
Hi, I was wondering how to create a custom signin/signup UI for a NextJS integration. I am currently successfully using the pre build UI [1], however I'm not sure how to start creating a custom UI. - Should it be in the same file (
pages/auth/[[...path]].tsx
)? If so, where do I put my components? If not, which file should I use? - The example of the custom email password signin [2] only shows the callback function. Is there an example of building a custom UI in NextJS? - Is there a certain structure to keep in mind such that I can easily later add alternative signin/signup methods? [1]: https://supertokens.com/docs/emailpassword/nextjs/setting-up-frontend [2]: https://supertokens.com/docs/emailpassword/custom-ui/email-password-login
m
r
  • 2
  • 4
  • 23
Hi, I'm experiencing a problem with the get_user_by_id method from supertokens_python.recipe.thirdpa...
d

dominik_90977

over 1 year ago
Hi, I'm experiencing a problem with the get_user_by_id method from supertokens_python.recipe.thirdparty.syncio. When I access this API route, I get the error message "Initialisation not done. Did you forget to call Supertokens.init". But the rest of the app is working fine (also with login/ logout etc., acccessing the session). Is there something I need to change for the API view?
@method_decorator(verify_session(), name='dispatch')
class UserIsThirdParty(APIView):

    def get(self, request: HttpRequest):
        session: SessionContainer = request.supertokens

        user_id = session.get_user_id()

        user = get_user_by_id(user_id)
        ...
d
r
  • 2
  • 5
  • 23
Hello, Why can't I import the ui in react ``` import { getSuperTokensRoutesForReactRouterDom } from...
t

trovis_

about 2 years ago
Hello, Why can't I import the ui in react
import { getSuperTokensRoutesForReactRouterDom } from "supertokens-auth-react"
It tells me that it can't find a module with that name. Framework : React Vitejs Typescript Additional information: without vitejs, using create-react-app everything works perfectly.
t
r
  • 2
  • 25
  • 23
with postman
r

rp_st

about 2 years ago
How can I make Postman send session tokens in requests if the sign-in request is not sending cookies in the response?
r
  • 1
  • 2
  • 23
In accessTokenAPIResponse I only get access_token, token_type, expires_in, refresh_token and scopre...
w

weboux

over 2 years ago
In accessTokenAPIResponse I only get access_token, token_type, expires_in, refresh_token and scopre :/
w
r
  • 2
  • 9
  • 23
Hi, I have a simple web application and I am trying to perform login and get session information lik...
a

aarron28_

over 2 years ago
Hi, I have a simple web application and I am trying to perform login and get session information like getting the access token When I try to run the code below, it show error which is no instance of session found. Make sure to call session.init method. How should I be logging in and getting the session object? session_provider :async() => { supertokens.init({ appInfo: { apiDomain: "https://aarron28.com", apiBasePath: "/auth", appName: "Test App" }, recipeList: [ supertokensSession.init({ tokenTransferMethod: "header" // or "cookie" }), supertokensSession.init(), supertokensEmailPassword.init(), ], }); var aaa = await supertokensEmailPassword.signIn({ "formFields": [{ "id": "email", "value": "lucas333" }, { "id": "password", "value": "pas123" }] }); supertokensSession.getAccessToken(); return aaa; }
a
r
n
  • 3
  • 38
  • 23
Getting 404 with supertoken auth apis in NESTJS
n

noraiz7658

about 3 years ago
Getting 404 with supertoken auth apis in NESTJS
n
r
  • 2
  • 27
  • 23
Hi, I'm facing a problem with the `st-auth-mode` request header. First, I do a signup request (usin...
m

michael_pxr

over 1 year ago
Hi, I'm facing a problem with the
st-auth-mode
request header. First, I do a signup request (using the email password recipe) where I set the header
st-auth-mode: cookie
. I then get a response with
Set-Cookie
headers for the access token and refresh token. This is as expected. Next, I do a signup request where I don't set the
st-auth-mode
header. I then get a response with both
Set-Cookie
headers and
st-access-token
and
st-refresh-token
headers. I do not expect to get the
Set-Cookie
headers. I do a signup request one more time, again without setting the
st-auth-mode
header. This time only the
st-access-token
and
st-refresh-token
headers are set. This is as expected. All signup requests I do afterwards without the
st-access-token
header give the same proper result. The second request should not have returned the
Set-Cookie
headers. Is this a known issue or am I doing something wrong?
m
r
  • 2
  • 2
  • 22
Hi, guys. Anyone has any experience adding Microsoft OAuth? Can you share some workarounds if there ...
s

serg

about 2 years ago
Hi, guys. Anyone has any experience adding Microsoft OAuth? Can you share some workarounds if there are needed please? Just starting out, trying to avoid common mistakes
s
r
  • 2
  • 7
  • 22
Getting this error: `TypeError: this.response.status is not a function`, used to work fine but now t...
p

piano1029

over 2 years ago
Getting this error:
TypeError: this.response.status is not a function
, used to work fine but now this.
p
r
  • 2
  • 40
  • 22
Previous212223Next

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