https://supertokens.com/
Join Discord
I am running NextJS with an Express API on a separate server. Is there a way for me to get the user ...
r

robottonyc

almost 2 years ago
I am running NextJS with an Express API on a separate server. Is there a way for me to get the user session inside getServerSideProps in my NextJS application? I have tried following the NextJS specific directions for getServerSideProps but it always comes back unauthorized. Any advice? I'm thinking I need to use the SDK inside getServerSideProps which is fine but how do I get the user id or session id so I can check if they have a valid session? My goal is to redirect to a different page if the user is authenticated. My api is running on api.example.com and app on app.example.com on my localhost by adjusting my etc/hosts. I get a session on first page load after logging in, if I refresh the page then it fails with the UNAUTHORIZED error triggering an infinite refreshing loop.
r
r
  • 2
  • 37
  • 20
https://supertokens.com/docs/thirdpartyemailpassword/common-customizations/sessions/handling-session...
f

flaskdev

almost 2 years ago
https://supertokens.com/docs/thirdpartyemailpassword/common-customizations/sessions/handling-session-expiry Can I use this handler with Next.js 13/14?
f
r
  • 2
  • 1
  • 20
I have a solution that is a mono-repo using Lerna v7 and npm v8. It is using `supertokens-node`. `no...
u

umarfkhawaja

about 2 years ago
I have a solution that is a mono-repo using Lerna v7 and npm v8. It is using
supertokens-node
.
node_modules
are being hoisted to the root of the repository. Till I was using
v14
of
supertokens-node
, it was being hoisted to the root correctly. There was only one copy of the library. Everything was fine. Since I have upgraded to
v15
though, I have noticed that there is a separate copy of
supertokens-node
in each package where it is being used. Consequently, I am getting the following error on startup.
Error: Please call the supertokens.init function before using SuperTokens
How do I rectify this?
u
r
  • 2
  • 14
  • 20
Getting the following error: Error: please provide exactly one client config or pass clientType or t...
s

simon7000

about 2 years ago
Getting the following error: Error: please provide exactly one client config or pass clientType or tenantId I am using the latest versions of
supertokens-node supertokens-auth-react supertokens-web-js
. I am trying to add a custom provider. Is clientType for react required? If I provide the clientType I am getting an error that the config for this client type is missing.
s
r
  • 2
  • 13
  • 20
Hi! This might be a dumb question but I was implementing the User Metadata feature, and added some m...
d

drixhua

over 2 years ago
Hi! This might be a dumb question but I was implementing the User Metadata feature, and added some metadata for a user. I was expecting to see the result in the supertokens user_metadata table, but seems to be empty. What does that table do then?
d
r
  • 2
  • 5
  • 20
I came across a scenario where a user had an old cookie (thirdparty) and i swapped the recipe over t...
e

Erick

over 2 years ago
I came across a scenario where a user had an old cookie (thirdparty) and i swapped the recipe over to thirdpartyemailpassword... So I think it was looking for thirdparty.Init.. any suggestions on how to not bork all users who have logged in via thirdparty recipe
e
r
  • 2
  • 14
  • 20
is there somewhere that explains what an MAU is? Does MAU mean total users signed up? If it is month...
m

mrCunningham

over 2 years ago
is there somewhere that explains what an MAU is? Does MAU mean total users signed up? If it is monthy active users, then does that mean if user
Bob
logs in three times that counts as 1 MAU?
m
r
  • 2
  • 4
  • 20
<@498057949541826571> is it possible to delete all users and their data programmatically.
a

aV

over 2 years ago
@rp_st is it possible to delete all users and their data programmatically.
a
r
d
  • 3
  • 17
  • 20
I have my website deployed and I am getting the following error when trying to sign in using an acco...
b

bitcoinrippin

over 2 years ago
I have my website deployed and I am getting the following error when trying to sign in using an account I created on localhost (connected to the same supertokens hosted instance) Error: No SuperTokens core available to query at Querier. (/home/rscsguex/nodevenv/api-development/14/lib/node_modules/supertokens-node/lib/build/querier.js:225:27) at Generator.next () at /home/rscsguex/nodevenv/api-development/14/lib/node_modules/supertokens-node/lib/build/querier.js:30:75 at new Promise () at __awaiter (/home/rscsguex/nodevenv/api-development/14/lib/node_modules/supertokens-node/lib/build/querier.js:12:16) at Querier.sendRequestHelper (/home/rscsguex/nodevenv/api-development/14/lib/node_modules/supertokens-node/lib/build/querier.js:218:13) at Querier. (/home/rscsguex/nodevenv/api-development/14/lib/node_modules/supertokens-node/lib/build/querier.js:245:43) at Generator.throw () at rejected (/home/rscsguex/nodevenv/api-development/14/lib/node_modules/supertokens-node/lib/build/querier.js:22:44) at processTicksAndRejections (internal/process/task_queues.js:95:5)
b
n
  • 2
  • 20
  • 20
I have written a custom provider for Azure AD, would you guys be willing to take it as a contributio...
m

mayankgopronto

over 2 years ago
I have written a custom provider for Azure AD, would you guys be willing to take it as a contribution?
m
r
  • 2
  • 1
  • 20
Previous575859Next

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