2.0.1 • Published 3 years ago
@roblox-cas/jwt-issuer v2.0.1
cas-jwt-issuer
Node.js JWT Issuer package
Usage
const JwtIssuer = require('@roblox-cas/jwt-issuer')
const issuer = new JwtIssuer(canonicalIssuerName, JSON.parse(privateJWK), {
aud: canonicalAudienceName,
sub: canonicalSubjectName,
rbx_svc: rbxSvc
})
issuer.getToken(rbxOp, rbxObjs, rbxMsgHsh)
Or see https://github.rbx.com/Roblox/cas-fast-track/blob/master/workers/membership-change-worker/lib/moderation-action-message-generator.js for a more realistic usage example
2.0.1
3 years ago