nosmaster89
12/05/2022, 12:48 PMITEnthusiasm
12/05/2022, 5:24 PMrp
12/06/2022, 2:50 AMporcx
12/06/2022, 4:16 AMporcx
12/06/2022, 4:18 AMAlen
12/06/2022, 7:44 AM<YOUR_API_DOMAIN>/auth/callback/apple
something like <YOUR_API_DOMAIN>/auth
this.Alen
12/06/2022, 7:54 AMAlen
12/06/2022, 7:57 AM<YOUR_DOMAIN>/auth/callback/apple
. Instead it should be like this <YOUR_DOMAIN>/auth/signup
Alen
12/06/2022, 7:58 AMengin
12/06/2022, 8:18 AMrp
12/06/2022, 8:31 AMIruizmar
12/06/2022, 9:29 AMvishalc
12/06/2022, 1:17 PMITEnthusiasm
12/06/2022, 6:06 PMIssue
I threw up on GitHub in supertokens-node
. But this question is more specific.
Is there an existing way to replicate the /signin
, /signup
, /session/refresh
route middleware by hand? (And are those the only middlewares created from app.use(middlewares())
?)
(Background in Thread)
Jono
12/06/2022, 7:58 PMJono
12/06/2022, 8:43 PMlegolas8911
12/06/2022, 11:19 PMsupertokens-node
that's under auth.domain.com. That's it's sole purpose. Now, I have another service, let's call it API, that I need to init supertokens-node into for API route session verification and such. While looking into the sourcecode of st-node
I saw that the init config the recipeList
is not optional. I don't want any ST apis on this service, all I want is to .init() it, point it to core and be able to validate requests. Should I just add the Session recipe and nothing else? Will that work? ThanksAithusa
12/06/2022, 11:58 PMjava
Error: Initialisation not done. Did you forget to call the SuperTokens.init function?
I keep getting this error when going to my /testauth path but I did call the function before the route
import { verifySession } from "supertokens-node/recipe/session/framework/express/index.js";
router.get("/testauth", verifySession(), (req, res) => {
if (req.session == null) {
res.send({ error: "Must be signed in", code: "401" })
return
}
let userId = req.session.getUserId();
});
Chunkygoo
12/07/2022, 12:02 AM# npm audit report
qs 6.7.0 - 6.7.2
Severity: high
qs vulnerable to Prototype Pollution - https://github.com/advisories/GHSA-hrpp-h998-j3pp
fix available via `npm audit fix --force`
Will install supertokens-node@2.5.0, which is a breaking change
node_modules/qs
body-parser 1.19.0
Depends on vulnerable versions of qs
node_modules/body-parser
supertokens-node >=3.0.0
Depends on vulnerable versions of body-parser
node_modules/supertokens-node
3 high severity vulnerabilities
rp
12/07/2022, 4:00 AMrp
12/07/2022, 4:01 AMYaBoiStarLord
12/07/2022, 7:15 AMinvite_link = "http://localhost:3000/auth/reset-password?token=" + \
password_reset_token.token
What is this Base URL? Is it supposed to the URL for my API server or the Supertokens Core server?YaBoiStarLord
12/07/2022, 7:16 AMNoirLime
12/07/2022, 8:51 AMAyush6543
12/07/2022, 8:55 AMVal
12/07/2022, 10:30 AMVal
12/07/2022, 10:31 AMgc1980
12/07/2022, 11:16 AMAlen
12/08/2022, 5:51 AMVal
12/08/2022, 8:27 AM