mirror of
https://github.com/sasjs/server.git
synced 2025-12-10 19:34:34 +00:00
8 lines
215 B
TypeScript
8 lines
215 B
TypeScript
import jwt from 'jsonwebtoken'
|
|
import { InfoJWT } from '../types'
|
|
|
|
export const generateRefreshToken = (data: InfoJWT) =>
|
|
jwt.sign(data, process.env.REFRESH_TOKEN_SECRET as string, {
|
|
expiresIn: '30 days'
|
|
})
|