joshsoftware / joshsoftware/peerly

Add container component for login API integration

Open
#140 0 comments 0 reactions 1 assignee Claimed by @onkar-josh View on GitHub
enhancement react-frontend
Dominant language
Go
Stars
10
Forks
8
PR merge metrics
No merged PRs in 30d

Description

- [x] Create a container component
which will have the callback function for the google login button

- [x] The callback function will call Google OAuth API and get the access token

- [x] Call login API with access token and API helper functions

- [x] Create an action to set user access token to redux state

- [x] If the login API call is success dispatch an action to set user's token

- [x] once this flow is successful use saga generator function to make login API calls

- [x] Test Case for Saga.

- [x] Test Case for reducer.

- [x] Test Case for container.

- [x] add error handling for login failure.

- [x] add error handling for closing google login panel.

- [x] Code guidelines are met

- [x] PR guidelines are met

- [x] Test cases added

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.