Errors: Handle Auth Failure Conditions #16
Labels
chore
enhancement
New feature or request
help wanted
Extra attention is needed
priority-2
T1d
technical
As a person using the @dwyl app to be more personally effective,
I do not want to stumble at the first hurdle trying to authenticate.
I don't expect to see unfriendly/unrecoverable error messages,
rather I expect to be able to recover from errors without drama.
At present our
get_token/1
function is only following the "happy path":elixir-auth-google/lib/elixir_auth_google.ex
Lines 18 to 29 in 687fba5
The callback function is
parse_body_response/1
which does not handle the{:error, err}
elixir-auth-google/lib/elixir_auth_google.ex
Lines 38 to 45 in 687fba5
This is fine during MVP because as early "dogfooding" users we are tolerant of the failure/errors.
But as soon as we ship and show the MVP to (friendly) alpha test users, we need to have this done.
Todo:
case
statement to handle all the error conditions.template
to ensure that error conditions are displayed in a friendly way.README.md
> How? section to inform people about error scenarios.We do not need to handle the failures before we ship our MVP, let's come back to this when it's needed.
The text was updated successfully, but these errors were encountered: