Skip to content

Feat/add mock login - #2

Open
iakomus wants to merge 7 commits into
feat/add-task-inputfrom
feat/add-mock-login
Open

Feat/add mock login#2
iakomus wants to merge 7 commits into
feat/add-task-inputfrom
feat/add-mock-login

Conversation

@iakomus

@iakomus iakomus commented Apr 8, 2022

Copy link
Copy Markdown
Contributor

feat: implement simple auth context with a mock login logic
feat: wrap our App component with our AuthProvider
feat: includes Header component, which will display either the login form or a log out button based on the currentUser stored in the context
feat: implements log out button, calling signOut function defined in the context
feat: implements log in form, using the signIn function defined in the context and also using the custom hook useInput
feat: when URL is not defined, requestState is set to 'INITIAL' and requestResponse as undefined
feat: construct request URL based on the authenticated user

iakomus added 7 commits April 8, 2022 20:17
For this iteration, username && password should be either 1, 2, 3 or 4 (this logic in reality should live in the backend)
…form or a log out button based on the currentUser stored in the context
…e context and also using the custom hook `useInput`

Also implements a simple error handling
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.

1 participant