Commit Graph

15 Commits

Author SHA1 Message Date
Ilia Mashkov
6d81eaba4b feat(auth): add validatePassword function with requirements for min and max characters amount, presence of at least one uppercase letter, one lowercase letter, one digit and one special symbol; cover it with tests 2026-03-25 10:34:54 +03:00
Ilia Mashkov
5b49398665 feat(auth): add an RFC complient validation function for an email address; cover it with tests 2026-03-25 10:18:55 +03:00
Ilia Mashkov
c41f02f505 chore: export modules 2026-03-24 19:29:37 +03:00
Ilia Mashkov
683443673e chore: remove unused code 2026-03-24 19:28:55 +03:00
Ilia Mashkov
c378f7c83a refactor(auth): rewrite store actions, remove arguments, add checks validation and status checks; add test cases 2026-03-24 13:04:58 +03:00
Ilia Mashkov
b871bf27de feat(auth): add formData to the auth store; add corresponding setEmail and setPassword actions 2026-03-24 11:15:23 +03:00
Ilia Mashkov
6a2a826a11 refactor: create separate shared store for auth token and refresh action 2026-03-24 09:26:10 +03:00
Ilia Mashkov
fd5b50a6f2 test(auth): write basic unit tests for authStore actions 2026-03-18 09:58:30 +03:00
Ilia Mashkov
51fc64d8c3 feat(auth): add accessToken field to the store 2026-03-18 09:57:59 +03:00
Ilia Mashkov
2afbd73a31 fix(auth): fix circular import problem by changing the way the authHttpClient gets accessToken; replace individual calls mocks with the common ones 2026-03-18 09:10:17 +03:00
Ilia Mashkov
b75e805f54 feat(auth): add refresh action to authStore 2026-03-17 14:18:49 +03:00
Ilia Mashkov
ed718eea71 feat(auth): add accessToken field to authStore and setup beforeRequest hook to add this token to headers 2026-03-17 14:08:29 +03:00
Ilia Mashkov
11b84ddc5d feat(auth): add error field to store and remove unused actions 2026-03-17 13:41:55 +03:00
Ilia Mashkov
55451d3eb4 feat(auth): add basic implementation of login/register/logout store actions 2026-03-17 12:26:13 +03:00
Ilia Mashkov
a98a9c2c79 feat(Auth): create useAuthStore hook representing auth store using zustand 2026-03-16 18:31:53 +03:00