Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(auth.client): (3) extract fetch user service function to Typescript #2089

Merged
merged 7 commits into from Jun 10, 2021

Conversation

karrui
Copy link
Contributor

@karrui karrui commented Jun 7, 2021

Chain: sendOtp <--- verifyOtp <-- fetchUser (you are here)

Problem

This PR is part 3 of migrating auth.client.js to Typescript. This PR extracts out the fetch user function

Related to #2057

Solution

Breaking Changes

  • Yes - this PR contains breaking changes
  • No - this PR is backwards compatible

Features:

  • feat(UserService): add fetchUser function
  • use new fetchUser function
  • remove old unused refreshUser function

Tests

Unit tests have been written for UserService.fetchUser

Manual tests

  • Chrome network tab. Open dropdown avatar. The call should succeed and return the current user. Localstorage should also be replaced (or unchanged)

@seaerchin
Copy link
Contributor

lgtm

@karrui karrui force-pushed the feat/authservice-fetch-user-ts branch from 5509987 to f1e391a Compare June 8, 2021 03:18
@karrui
Copy link
Contributor Author

karrui commented Jun 9, 2021

Ready for re-review

@karrui karrui requested review from mantariksh and tshuli June 9, 2021 02:51
@karrui karrui force-pushed the feat/authservice-verify-userservice-ts branch from 5a03fa6 to aa596c9 Compare June 9, 2021 06:54
@karrui karrui force-pushed the feat/authservice-fetch-user-ts branch from 6ee3605 to 6a90837 Compare June 9, 2021 07:07
Base automatically changed from feat/authservice-verify-userservice-ts to feat/authsvc-ts-base June 10, 2021 05:10
@karrui karrui merged commit ad3cf63 into feat/authsvc-ts-base Jun 10, 2021
@karrui karrui deleted the feat/authservice-fetch-user-ts branch June 10, 2021 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants