Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ function App() {
const emailInputRef = useRef()
const passwordInputRef = useRef()

function handleLoginForm() {
async function handleLoginForm() {
const email = emailInputRef.current.value
const password = passwordInputRef.current.value
const hashedPassword = bcrypt.hashSync(password, '$2a$10$CwTycUXWue0Thq9StjUM0u') // hash created previously created upon sign up

fetch('https://api.sampleapis.com/beers/ale', {
await fetch('https://api.sampleapis.com/beers/ale', {
method: 'POST',
headers: {
Accept: 'application/json',
Expand Down