UNPKG

@aditya-garg-09-01-2002/q-auth

Version:

Easy and quick authentication integration for beginner dev projects

18 lines (14 loc) 376 B
import dotenv from "dotenv" dotenv.config() interface jwtProps { name : string key : string } export const SessionJwt : jwtProps = { name : process.env.SESSION_JWT_NAME as string, key : process.env.SESSION_JWT_KEY as string } export const UserJwt : jwtProps = { name : process.env.USER_JWT_NAME as string, key : process.env.USER_JWT_KEY as string }