#auth is fing me up

1 messages · Page 1 of 1 (latest)

chilly flower
#

Can you post your LocalAuthGuard?

frail creek
#

You can also place this inside your LocalAuthGuard to get more helpful explanation what went wrong:

  handleRequest<TUser = any>(
    err: any,
    user: any,
    info: any,
    context: ExecutionContext,
    status?: any,
  ): TUser {
    console.log(err, user, info, status);
    return super.handleRequest(err, user, info, context, status);
  }
dawn spruce
#

I've found this is a more concise version of that, @frail creek

handleRequest(...args: Parameters<InstanceType<ReturnType<typeof AuthGuard>>['handleRequest']> {
  console.log(args);
  return super.handleRequest(...args);
}
#

Making use of that Typescript magic

frail creek
agile ether
#

i actually fixed this

#

nothing was wrong

#

i recreated the whole module 1:1