commencer
Version:
Easy-to-use authentication integration template for beginners
20 lines (15 loc) • 431 B
text/typescript
import dotenv from "dotenv"
dotenv.config()
interface jwtProps {
name : string
key : string
}
export const SessionJwt : jwtProps = {
name : process.env.COMMENCER_SESSION_JWT_NAME as string,
key : process.env.COMMENCER_SESSION_JWT_KEY as string
}
export const UserJwt : jwtProps = {
name : process.env.COMMENCER_USER_JWT_NAME as string,
key : process.env.COMMENCER_USER_JWT_KEY as string
}
//set default