pow-auth / pow_assent

Multi-provider authentication for your Pow enabled app
https://powauth.com
MIT License
321 stars 50 forks source link

Better changeset error handling #195

Open danschultzer opened 3 years ago

danschultzer commented 3 years ago

Related to #170 this PR attempts to work through better changeset error handling.

The first step was eliminating the :uid_provider combination, and just check unique constraint on :uid. The second will be to make the changeset error handling more aware of other types of errors when checking for :bound_to_different_user or :invalid_user_id_field. I'm not sure that returning the tuple is the best way to deal with this.