UNPKG

@nodescript/stdlib

Version:
29 lines (28 loc) 619 B
export const module = { version: '1.0.4', moduleName: 'Web / Bearer Auth', description: ` Creates a Bearer token HTTP authorization header. `, params: { token: { schema: { type: 'string' }, }, prefix: { schema: { type: 'string', default: 'Bearer', }, advanced: true, }, }, result: { schema: { type: 'string' }, }, }; export const compute = params => { const { token, prefix } = params; return [prefix, token].join(' '); };