/var/www/greso.tech/server/nsm/node_modules/jose/dist/node/esm/jws/compact
NameSizeModeActions
sign.js6110644editdlrm
verify.js8980644editdlrm
Edit: /var/www/greso.tech/server/nsm/node_modules/jose/dist/node/esm/jws/compact/sign.js (611B)
import { FlattenedSign } from '../flattened/sign.js'; export class CompactSign { constructor(payload) { this._flattened = new FlattenedSign(payload); } setProtectedHeader(protectedHeader) { this._flattened.setProtectedHeader(protectedHeader); return this; } async sign(key, options) { const jws = await this._flattened.sign(key, options); if (jws.payload === undefined) { throw new TypeError('use the flattened module for creating JWS with b64: false'); } return `${jws.protected}.${jws.payload}.${jws.signature}`; } }