Simple Authentication for Remix
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.authenticate
method receives a sessionErrorKey
where it will set the error message in case of a redirect. It defaults to the auth:error
key.throwOnError
options upon instantiation (optional) and allow it as option in the authenticate
method to overwrite it, useful to enable it by default.sessionErrorKey
and defaults to auth:error
.Full Changelog: https://github.com/sergiodxa/remix-auth/compare/v2.6.0...v3.0.0
Full Changelog: https://github.com/sergiodxa/remix-auth/compare/v2.5.1...v2.6.0
Full Changelog: https://github.com/sergiodxa/remix-auth/compare/v2.5.0...v2.5.1
isAuthenticated
to fix crashes due to unhandled promises by @zainfathoni in https://github.com/sergiodxa/remix-auth/pull/84
Full Changelog: https://github.com/sergiodxa/remix-auth/compare/v2.4.1...v2.5.0
Full Changelog: https://github.com/sergiodxa/remix-auth/compare/v2.4.1...v2.5.0-0
Full Changelog: https://github.com/sergiodxa/remix-auth/compare/v2.4.0...v2.4.1
Full Changelog: https://github.com/sergiodxa/remix-auth/compare/v2.3.0...v2.4.0
Full Changelog: https://github.com/sergiodxa/remix-auth/compare/v2.2.0...v2.3.0
Full Changelog: https://github.com/sergiodxa/remix-auth/compare/v2.1.2...v2.2.0
Full Changelog: https://github.com/sergiodxa/remix-auth/compare/v2.1.1...v2.1.2