@rxap/n8n-utilities
Version:
This package provides utility functions and classes for n8n nodes, including custom authentication methods (Bearer Auth, Oauth2 Proxy Auth, Base URL), a decorator for capturing execution errors, and base classes for creating nodes from OpenAPI specificati
30 lines • 915 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HttpBearerAuth = void 0;
class HttpBearerAuth {
constructor() {
this.name = 'httpBearerAuth';
this.displayName = 'Bearer Auth';
this.genericAuth = true;
this.icon = 'node:n8n-nodes-base.httpRequest';
this.properties = [
{
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
}
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
Authorization: '=Bearer {{$credentials.accessToken}}',
},
},
};
}
}
exports.HttpBearerAuth = HttpBearerAuth;
//# sourceMappingURL=HttpBearerAuth.credentials.js.map