Skip to content

Instantly share code, notes, and snippets.

@cyberhck
Created July 4, 2018 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyberhck/e8c7d26902b0ce447d0352ad9d67fe67 to your computer and use it in GitHub Desktop.
Save cyberhck/e8c7d26902b0ce447d0352ad9d67fe67 to your computer and use it in GitHub Desktop.
medium posts
fetch("api.example.com/user/1/posts", {header: {Authorization: "Bearer: <JWT TOKEN>"}})
.then(res => res.json())
.then(res => {
console.log(res)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment