HemmeligOrg / Hemmelig.app

Keep your sensitive information out of chat logs, emails, and more with encrypted secrets.
https://hemmelig.app
MIT License
681 stars 57 forks source link

fix: get email domain in a simplified way #282

Closed bjarneo closed 5 months ago

bjarneo commented 5 months ago

This pull request includes changes primarily aimed at refactoring the way email domains are extracted and handled, and improving error messaging in the authentication process. The extract-domain package was removed and replaced with a custom getEmailDomain function, which is now used in multiple files. Additionally, the error messaging in the signIn and signUp functions was changed from json.error to json.message.

Refactoring email domain extraction:

Improving error messaging:

sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud