npm @nestjs/authorization 0.1.4
Release 0.1.4

one hour ago

Behaviour changes

  • A @Can() that applies to a federation @ResolveReference() method, including one on the resolver class, now fails at startup unless GraphQL runs guards on reference resolvers, which takes fieldResolverEnhancers: ['guards'] in the GraphQLModule options. Add the enhancer, or put @Can.Anyone() on the reference resolver where anyone may resolve the entity.
  • Reference resolvers that read the user also need @nestjs/authentication 0.1.6.

Bug fixes

  • fix: call getUser on the module options so a method can use this by @johnnyhuirilef in #55
  • fix: check federation reference resolvers and read their user (46e04a1)
  • fix: say when the guard denies a hybrid app's message handlers (2921cbc)

Full Changelog: 0.1.3...0.1.4

Don't miss a new authorization release

NewReleases is sending notifications on new releases.