import { HookDecorator } from '../core';
import { Login } from './login.hook';

export function LoginOptional(options: { user: (id: number|string) => Promise<any> }): HookDecorator {
  return Login(false, options);
}

import { HookDecorator } from '../core';
import { Login } from './login.hook';

export function LoginOptional(
    options: { redirect?: string, user: (id: number|string) => Promise<any> }): HookDecorator {
  return Login(false, options);
}

--- 
+++ 
@@ -1,7 +1,6 @@
 import { HookDecorator } from '../core';
 import { Login } from './login.hook';
 
-export function LoginOptional(
-    options: { redirect?: string, user: (id: number|string) => Promise<any> }): HookDecorator {
+export function LoginOptional(options: { user: (id: number|string) => Promise<any> }): HookDecorator {
   return Login(false, options);
 }
Remove the redirect option from LoginOptional
