https://supertokens.com/
Join Discord
🤠 good day folks. what is the best approach for handling unit tests with supertokens python SDK? un...
d

d3adb0y

over 2 years ago
🤠 good day folks. what is the best approach for handling unit tests with supertokens python SDK? unfortunately i have procrastinated on this for way too long. is there any easy mechanism to mock the user session? i know about the recipe specific API overrides as I am using some of those to customize the auth flow. is there a way to mock the response for user session as well? Can I override the
verify_session
function in the session.init()?
d
r
  • 2
  • 20
  • 33
here ```http://localhost:3000/auth?redirectToPath=``` I'm getting this error -> ```Unhandled Runt...
f

funk101

over 2 years ago
here
http://localhost:3000/auth?redirectToPath=
I'm getting this error ->
Unhandled Runtime Error
TypeError: style.toLowerCase is not a function
This after upgrading my supertokens-auth-react, supertokens-node, and supertokens-web-js
f
a
  • 2
  • 2
  • 33
Hi, I have a simple web application and I am trying to perform login and get session information lik...
a

aarron28_

almost 3 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
  • 33
Hey, got a question regarding axios interceptors. Since we no longer need to explicitly set intercep...
l

leandergan

about 3 years ago
Hey, got a question regarding axios interceptors. Since we no longer need to explicitly set interceptors, how can I choose which axios instance the supertokens chould use? (is that possible) (using vue3 and go)
l
r
p
  • 3
  • 15
  • 33
hi! can i override how `<EmailPassword.EmailPasswordAuth>` from 'supertokens-auth-react' redirects ...
y

yzs

over 3 years ago
hi! can i override how
<EmailPassword.EmailPasswordAuth>
from 'supertokens-auth-react' redirects to auth? i want to add a query param
y
r
  • 2
  • 16
  • 33
hey <@498057949541826571> I am using passwordless. i am trying to do something after user registers....
a

aV

over 3 years ago
hey @rp_st I am using passwordless. i am trying to do something after user registers. For now I am just printing in the backend after a new regisration. when try to enter a code or use magic link to verify the backend sdk crashes. I tried this override:
a
r
  • 2
  • 10
  • 33
hello , i am a supertoken user . i have integrated supertokens with my application. And using sessio...
j

jj_9475

over 3 years ago
hello , i am a supertoken user . i have integrated supertokens with my application. And using session context. i need to individually test react components for my unit test. but i cant seem to mock useSessionContext. could you please help me.
j
r
  • 2
  • 3
  • 33
Hey guys, does anyone have any idea on how to add an e2e test using puppeteer/playwright/cypress? Wh...
s

showtim33

over 3 years ago
Hey guys, does anyone have any idea on how to add an e2e test using puppeteer/playwright/cypress? What I tried was somehow copying the cookie and setting it in the test, it worked but not for long, probably because the refresh tokens are also updated after a fixed time interval. I am using react and passwordless recipe. Any ideas/suggestions/pointers?
s
r
  • 2
  • 14
  • 33
What's the best way to temporarily disable sign-up? I want to keep the existing users on my core.
c

cyber.mantis

over 3 years ago
What's the best way to temporarily disable sign-up? I want to keep the existing users on my core.
c
r
  • 2
  • 14
  • 33
Hey <@498057949541826571> I have intergrated user login using google, On frontend how I can get th...
l

Lucifer979

over 1 year ago
Hey @rp_st I have intergrated user login using google, On frontend how I can get the user information after login, like userId?
l
r
  • 2
  • 1
  • 32
Previous373839Next

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