Closed ruisebas closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 41.69%. Comparing base (
2518b16
) to head (ad6b06f
). Report is 4 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description of changes:
This PR allows Authenticator customers to invoke the
errorMap(_:)
view modifiers without having to provide anAuthenticatorError
for every possibleAuthError
. Instead, they can just provide a new value only for the errors they want to overwrite and returnnil
for all the rest, in which case the Authenticator will proceed to handle them with their default behaviour.For example, if a user only wants to override the message for
. notAuthorized
when a specific condition is met, they can now do something like:By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.