mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +00:00
chore: replace for environment
This commit is contained in:
parent
cfd8d4cc5e
commit
6cdb920478
@ -1,7 +1,7 @@
|
||||
import * as jwt from 'jsonwebtoken'
|
||||
|
||||
const publicPem = process.env.PUBLIC_PEM
|
||||
const privateKey = process.env.PRIVATE_KEY
|
||||
const publicPem = process.env.PUBLIC_PEM?.replace(/\\n/g, '\n')
|
||||
const privateKey = process.env.PRIVATE_KEY?.replace(/\\n/g, '\n')
|
||||
|
||||
export function sign(payload: string | Record<string, unknown>, options?: JWTSignOption): string | null {
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user