aboutsummaryrefslogtreecommitdiff
path: root/hooks/isAuthenticated.ts
blob: d0da8b65effa147bd5aa7ffbb91e3fe6dd6ab085 (plain)
1
2
3
4
5
6
7
8
9
import { HookContext } from '@feathersjs/feathers';
import { authenticate } from '@feathersjs/authentication';


export default async (context: HookContext): Promise<boolean> => {
  console.log(context.params.authenticated);
  return context.params.authenticated || false;
};