aboutsummaryrefslogtreecommitdiff
path: root/hooks/requireAuth.ts
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/requireAuth.ts')
-rw-r--r--hooks/requireAuth.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/hooks/requireAuth.ts b/hooks/requireAuth.ts
index ac46e22..ba08f57 100644
--- a/hooks/requireAuth.ts
+++ b/hooks/requireAuth.ts
@@ -4,6 +4,8 @@ import isAuthenticated from './isAuthenticated';
export default iff(
isNot(isAuthenticated),
- () => { throw new NotAuthenticated('This endpoint requires auth!') }
+ () => {
+ throw new NotAuthenticated('This endpoint requires auth!');
+ }
);