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