npm remix-auth 3.0.0
v3.0.0

latest releases: 3.7.0, 3.6.0, 3.5.1...
2 years ago

What's Changed

  • New abstract Strategy class instead of an interface.
  • The verify callback strategies receive is now part of the Strategy class types
  • The verify callback now receives a single object as argument, the type comes from the Strategy class generics.
  • The strategies authenticate method receives a throwOnError option, if defined it will throw an AuthorizationError instead of a 401 response in case of errors and if failureRedirect is not set.
  • The strategies authenticate method receives a sessionErrorKey where it will set the error message in case of a redirect. It defaults to the auth:error key.
  • The Authenticator now receives the throwOnError options upon instantiation (optional) and allow it as option in the authenticate method to overwrite it, useful to enable it by default.
  • The Authenticator now receives the sessionErrorKey and defaults to auth:error.
  • Don't export the strategies with the package, but keep the code until they are on a different package.

Full Changelog: v2.6.0...v3.0.0

Don't miss a new remix-auth release

NewReleases is sending notifications on new releases.