kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
10 wiersze
348 B
TypeScript
10 wiersze
348 B
TypeScript
import jwt from 'jsonwebtoken'
|
|
|
|
import { env } from '@/lib/env'
|
|
|
|
export function createProviderToken(project: { identifier: string }) {
|
|
// TODO: Possibly in the future store stripe account ID as well and require
|
|
// provider tokens to refresh after account changes?
|
|
return jwt.sign({ projectIdentifier: project.identifier }, env.JWT_SECRET)
|
|
}
|