Skip to content

Commit 2b48601

Browse files
fix: request.method -> request.transport
1 parent 544ea45 commit 2b48601

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/auth/strategy.http-bearer.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
const { ActionTransport } = require('@microfleet/core');
12
const bearer = require('./strategy.bearer');
23

34
function tokenAuth(request) {
4-
if (request.method === 'http') return bearer.call(this, request);
5+
if (request.transport === ActionTransport.http) {
6+
return bearer.call(this, request);
7+
}
8+
59
return null;
610
}
711

0 commit comments

Comments
 (0)