cal-itp / benefits

Transit benefits enrollment, minus the paperwork.
https://docs.calitp.org/benefits
GNU Affero General Public License v3.0
26 stars 9 forks source link

Improve analytics for auth claims flow #2049

Closed thekaveman closed 3 months ago

thekaveman commented 4 months ago

With the move to integer claims in #2046, IdG will return error codes in place of True (0) or False (1) when an error occurs in processing the user's eligibility. Any integer that is greater than or equal to 10 is considered an error code.

We want to improve our analytics around the auth flow, in particular to capture any errors that occur as described by IdG error codes.

Acceptance Criteria

Additional context

In #2046, we will handle the regular True (0) / False (1) cases.

This issue has been scoped back to exclude lookup of the error message associated with a given code. This needs further discussion and design with CDT.