Skip to content

Commit

Permalink
use access token in url parameter in stead of header
Browse files Browse the repository at this point in the history
  • Loading branch information
iamfrank committed Aug 26, 2023
1 parent 880fe4a commit 837d148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function getDHM(query, auth) {
* @returns {object} Response data
*/
function getSTAC(query, auth) {
return get(auth.API_STAC_BASEURL + query, {headers: {'token': auth.API_STAC_TOKEN}})
return get(auth.API_STAC_BASEURL + query + '&token=' + auth.API_STAC_TOKEN)
.then((data) => data)
}

Expand Down

0 comments on commit 837d148

Please sign in to comment.