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);
}

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

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

Remove the redirect option from LoginOptional
Remove the redirect option from LoginOptional
