https://supertokens.com/
Join Discord
how do i get getUserInfo to work
n

Nick White

over 3 years ago
how do i get getUserInfo to work
n
r
  • 2
  • 72
  • 49
Hi! I am using Angular, and I replaced the HttpClient with fetch. My understanding is that Session.i...
d

dleangen

over 3 years ago
Hi! I am using Angular, and I replaced the HttpClient with fetch. My understanding is that Session.init() is supposed to add interceptors to fetch to send session data along with each http request. Is my understanding correct? If it is, then how can I debug to figure out why session data is not being sent when I make a fetch request?
d
r
  • 2
  • 39
  • 49
Hey guys, I am getting the error: `jwt issued in future`. Now I have recently moved to another timez...
r

robschilder

over 3 years ago
Hey guys, I am getting the error:
jwt issued in future
. Now I have recently moved to another timezone, so that might be it. It only happens locally on my Hasura instance. Hence, I wondered, is there some kind of
allowed_skew
property that Supertokens has? Thanks!
r
r
  • 2
  • 12
  • 49
Hey <@498057949541826571> I want to get a list of all the users I have, but I want to do it from a ...
p

pimpler

almost 2 years ago
Hey @rp_st I want to get a list of all the users I have, but I want to do it from a script, not a server. I saw that there is a function in the node-supertoken lib but Im not able to use it (because I cannot use init()). I saw that there might be an endpoint in the CDI, but when I try to use GET im getting 404 not found in response. What is the right solution here? Thank you
p
r
  • 2
  • 8
  • 48
Hi, is it possible to run supertokens-core with sqlite database? I found this message from before: h...
m

mateusz_52196

almost 2 years ago
Hi, is it possible to run supertokens-core with sqlite database? I found this message from before: https://discord.com/channels/603466164219281420/1067986309248995430/1068195011298082876 but there is no direct answer (or probably I don't understand something). In dockerhub I found only recent images for mysql, postgresql and mongo. Docs also doesn't describe how to run with sqlite. My usecase is: I'm creating small app for ~500 users and app is using sqlite as its main datastore, because traffic is so small that it is sufficient. I would like to avoid running postgresql server only for supertokens. Instead of that I would like to use sqlite. I found this in google https://supertokens.com/docs/community/configuration/database/sqlite but this options are not mentioned here https://supertokens.com/docs/community/configuration/core so I'm not sure where I should put this configuration. Is there some additional documentation I missed? 🙂
m
r
  • 2
  • 2
  • 48
Hello <@498057949541826571> I am using python flask backend and on clicking on reset password the a...
t

Tushar

about 2 years ago
Hello @rp_st I am using python flask backend and on clicking on reset password the api gives 200 respond but I am not able to receive email . AFAIK from the documents even if I don't add any smtp configurations I should still get an email from supertokens domain or I am missing sth here ?
t
r
  • 2
  • 15
  • 48
Hi! I'm trying to implement UserRoles in my nextjs app and I'm getting ```Initialisation not done. ...
f

fatih.55

about 2 years ago
Hi! I'm trying to implement UserRoles in my nextjs app and I'm getting
Initialisation not done. Did you forget to call the UserRoles.init or SuperTokens.init functions?
when I try to create a role. Does anyone have an idea what I could be doing wrong?
f
n
  • 2
  • 22
  • 48
Hi <@498057949541826571> Somehow the frontend SDK doesn't set interceptors on fetch and doesn't pas...
a

aquamarine2620

about 2 years ago
Hi @rp_st Somehow the frontend SDK doesn't set interceptors on fetch and doesn't pass the session data when making requests. Our core is set at
identity.<domain>.com
and our microservices at
<microservice_name>.<domain>.com
When calling
<microservice_name>.<domain>.com
it return a 401 because we can get the logged in user roles. Also when inspecting the request going out of the browser, no supertokens headers or cookies are being sent
a
r
  • 2
  • 69
  • 48
Sorry another question regarding the Passwordless recipe: I'm trying to use signInUp in the createC...
s

Sonik

over 2 years ago
Sorry another question regarding the Passwordless recipe: I'm trying to use signInUp in the createCode function override in order to create my user earlier, but it kind of hang/freeze the function. Any idea? Thanks.
s
r
  • 2
  • 22
  • 48
im trying to get the logged in users email on the backend: const ThirdParty = require("supertokens-...
b

bitcoinrippin

over 2 years ago
im trying to get the logged in users email on the backend: const ThirdParty = require("supertokens-node/recipe/thirdparty"); async function generateNewInvoice(req, res, next) { const userId = session.userId; let userInfo = await ThirdParty.getUserById(userId); But it dies at the ThirdParty.getByUserId() method: Uncaught Error Error: Initialisation not done. Did you forget to call the SuperTokens.init function. Im following this guide basically exactly. What am I doing wrong? https://supertokens.com/docs/thirdparty/common-customizations/get-user-info#using-getuserbyid
b
r
a
  • 3
  • 6
  • 48
Previous192021Next

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