mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-21 17:09:09 +01:00
JWT auth plugin and necessary updates
This commit is contained in:
@@ -304,11 +304,13 @@ async function initialize() {
|
||||
}
|
||||
|
||||
if (payload.type === 'get_http_authentication_request' && mod.plugin?.authentication) {
|
||||
const auth = mod.plugin.authentication;
|
||||
const replyPayload: InternalEventPayload = {
|
||||
...auth,
|
||||
type: 'get_http_authentication_response',
|
||||
name: mod.plugin.authentication.name,
|
||||
pluginName: pkg.name,
|
||||
config: mod.plugin.authentication.config,
|
||||
|
||||
// Remove unneeded attrs
|
||||
onApply: undefined,
|
||||
};
|
||||
sendPayload(windowContext, replyPayload, replyId);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user