Lucifer979
soumya0373
import axios from 'axios' import { setupCache } from 'axios-cache-interceptor/dev' export default function ({ $config }, inject) { // Create axios instance const axiosInstance = axios.create({ baseURL: $config.baseURL, }) // Set up caching // Set axios instance to Nuxt context const axiosWithCache = setupCache(axiosInstance, { methods: ['get', 'post'], debug: console.log, }) inject('axiosCache', axiosWithCache) }
Sekai
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
subscriptions_
nik2208
namanchhabra_60978
mfwgenerics
supertokens-auth-react
supertokens-node
supertokens-web-js
wrnbrd
candice07251
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).