Client, various auth fixes + setup basic auth test + wrapper for error handling
sebpalluel opened this issue · comments
Specs
Error wrapper
- create api middleware to standardize errors
SignUp
- I can create an account with google sign-in and the create an account with credentials with the same email. In that case i cannot login because i retrieve the first account without account which is the google OAuth user. I shouldn't be able to sign up with credentials matching an OAuth email. An error should indicate what provider to use.
- I shouldn't be able to create multiple user with the same email in credentials. Display error that account with this email already exist.
SignIn
- When entering wrong credentials on sign in i should have an error displayed, the credential section should be opened
- I should be able to retrieve my OAuth account with my email, currently the user is empty when i login with email verifficationToken. Make sure to get the full user if it's the case.
- I can't login with a different OAuth provider which is a security feature, a clear error message should be displayed, ideally with the provider the user should use.