From bb80cdf5a6157ca1f3a276e12e9faae9a4739cb7 Mon Sep 17 00:00:00 2001
From: dh_ackergaul <dh_ackergaul@dh-software.de>
Date: Di, 23 Jun 2026 11:16:18 +0200
Subject: [PATCH] Update emvheya - 23.6.2026, 11:16:10 [JD]
---
manufacturer/_furnview/furnplan-web/node_modules/jose/dist/webapi/jwt/unsecured.js | 63 +++++++++++++++++++++++++++++++
1 files changed, 63 insertions(+), 0 deletions(-)
diff --git a/manufacturer/_furnview/furnplan-web/node_modules/jose/dist/webapi/jwt/unsecured.js b/manufacturer/_furnview/furnplan-web/node_modules/jose/dist/webapi/jwt/unsecured.js
new file mode 100644
index 0000000..18a20c8
--- /dev/null
+++ b/manufacturer/_furnview/furnplan-web/node_modules/jose/dist/webapi/jwt/unsecured.js
@@ -0,0 +1,63 @@
+import * as b64u from '../util/base64url.js';
+import { decoder } from '../lib/buffer_utils.js';
+import { JWTInvalid } from '../util/errors.js';
+import { validateClaimsSet, JWTClaimsBuilder } from '../lib/jwt_claims_set.js';
+export class UnsecuredJWT {
+ #jwt;
+ constructor(payload = {}) {
+ this.#jwt = new JWTClaimsBuilder(payload);
+ }
+ encode() {
+ const header = b64u.encode(JSON.stringify({ alg: 'none' }));
+ const payload = b64u.encode(this.#jwt.data());
+ return `${header}.${payload}.`;
+ }
+ setIssuer(issuer) {
+ this.#jwt.iss = issuer;
+ return this;
+ }
+ setSubject(subject) {
+ this.#jwt.sub = subject;
+ return this;
+ }
+ setAudience(audience) {
+ this.#jwt.aud = audience;
+ return this;
+ }
+ setJti(jwtId) {
+ this.#jwt.jti = jwtId;
+ return this;
+ }
+ setNotBefore(input) {
+ this.#jwt.nbf = input;
+ return this;
+ }
+ setExpirationTime(input) {
+ this.#jwt.exp = input;
+ return this;
+ }
+ setIssuedAt(input) {
+ this.#jwt.iat = input;
+ return this;
+ }
+ static decode(jwt, options) {
+ if (typeof jwt !== 'string') {
+ throw new JWTInvalid('Unsecured JWT must be a string');
+ }
+ const { 0: encodedHeader, 1: encodedPayload, 2: signature, length } = jwt.split('.');
+ if (length !== 3 || signature !== '') {
+ throw new JWTInvalid('Invalid Unsecured JWT');
+ }
+ let header;
+ try {
+ header = JSON.parse(decoder.decode(b64u.decode(encodedHeader)));
+ if (header.alg !== 'none')
+ throw new Error();
+ }
+ catch {
+ throw new JWTInvalid('Invalid Unsecured JWT');
+ }
+ const payload = validateClaimsSet(header, b64u.decode(encodedPayload), options);
+ return { payload, header };
+ }
+}
--
Gitblit v1.9.3