JWT auth plugin and necessary updates

This commit is contained in:
Gregory Schier
2025-01-17 08:02:55 -08:00
parent bd322162c8
commit 07ff709429
24 changed files with 327 additions and 104 deletions

View File

@@ -25,12 +25,15 @@ __export(src_exports, {
module.exports = __toCommonJS(src_exports);
var plugin = {
authentication: {
name: "Bearer",
name: "bearer",
label: "Bearer Token",
shortLabel: "Bearer",
config: [{
type: "text",
name: "token",
label: "Token",
optional: true
optional: true,
password: true
}],
async onApply(_ctx, args) {
const { token } = args.config;