Skip to content

Commit

Permalink
got api working and SAVED
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan Leopold committed Jan 23, 2021
1 parent d374282 commit c807817
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/FlightForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ class FlightForm extends Component {
})

// Begin API Access

let body = `grant_type=client_credentials&client_id=${process.env.REACT_APP_AMADEUS_KEY}&client_secret=${process.env.REACT_APP_AMADEUS_SECRET}`;
let form = this

Expand All @@ -76,7 +75,6 @@ class FlightForm extends Component {
},
data: body
}).then( function(response) {
console.log(response.data.access_token)
let token = response.data.access_token
form.setState({
oAuth: token
Expand Down

0 comments on commit c807817

Please sign in to comment.