Node TS: JWT token sign to verify authentication between client and backend question
Is it safe to generate a JWT token on server-side and to pass it in a sign-up request within the response JSON back to the client? Currently I’m generating a JWT in the following way: import express from "express"; import jwt from "jsonwebtoken"; const generateToken = (id: any, res: express.Response) => { const token =… Read More Node TS: JWT token sign to verify authentication between client and backend question