Update error handling in `auth.controller.ts` to provide more accurate responses based on operation results. This includes rigorous checking of response types before proceeding with particular operations. Notable changes include switching from string errors to error codes, and ensuring necessary properties exist in objects before accessing them. Issue: #19 Signed-off-by: Mathis <yidhra@tuta.io>
brief-05-back
Languages
TypeScript
100%