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

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