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

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