Skip to content

Commit 6b04525

Browse files
committed
hotfix: registration issue
1 parent 4eaced8 commit 6b04525

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hooks/tryAuthenticate.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { authenticate } from '@feathersjs/authentication';
33

44

55
export default async (context: HookContext): Promise<HookContext> => {
6-
if (context.params?.headers?.authorization && context.path !== 'authentication') {
6+
const authorization = context.params?.headers?.authorization;
7+
if (authorization && authorization !== 'null' && context.path !== 'authentication') {
78
return authenticate('jwt')(context);
89
}
910
return context;

0 commit comments

Comments
 (0)