sammon2412
javascript import express from "express"; import { verifySession } from "supertokens-node/recipe/session/framework/express"; import { SessionRequest } from "supertokens-node/framework/express"; let app = express(); app.post("/like-comment", verifySession(), (req: SessionRequest, res) => { let userId = req.session!.getUserId(); //.... });
verifySession()
/like-comment
SessionAuth
ankit0panchal
alpha_
avi.f
add_files
add_files_1
add_files_2
add_files_3
gsj
showtim33
jaynil_71939
avery_05391
{"status":"INVALID_EMAIL_ERROR"}
curl --location --request POST 'https://xxx.aws.supertokens.io/recipe/dashboard/user' \ --header 'rid: dashboard' \ --header 'api-key: <YOUR-API-KEY>' \ --header 'Content-Type: application/json' \ --data-raw '{"email": "<YOUR_EMAIL>","password": "<YOUR_PASSWORD>"}'
.dev
pops_77
Tushar
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).