Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Well done!
You have completed React Authentication (2019)!
You have completed React Authentication (2019)!
Instruction
Implement Sign In
In this step, we'll write the signIn()
function that retrieves a registered user's credentials from the server, then write a function to log in an authenticated user upon submitting the "Sign In" form.
Create the Sign in Function
-
Open the file
Context.js
. Scroll down to thesignIn
function, just below therender()
method:signIn = async () => { ...