blob: e179417b08a030ede84e97fd7ffdc90487462008 (
plain)
1
2
3
4
5
6
7
8
|
import { HookContext } from '@feathersjs/feathers';
import { authenticate } from '@feathersjs/authentication';
export default async (context: HookContext): Promise<HookContext> => {
return authenticate('jwt')(context).catch(() => context);
};
|