We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4eaced8 commit 6b04525Copy full SHA for 6b04525
hooks/tryAuthenticate.ts
@@ -3,7 +3,8 @@ import { authenticate } from '@feathersjs/authentication';
3
4
5
export default async (context: HookContext): Promise<HookContext> => {
6
- if (context.params?.headers?.authorization && context.path !== 'authentication') {
+ const authorization = context.params?.headers?.authorization;
7
+ if (authorization && authorization !== 'null' && context.path !== 'authentication') {
8
return authenticate('jwt')(context);
9
}
10
return context;
0 commit comments