Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save orangewolf/fcdfd6ca137e50fd53242ac6f8a82e2a to your computer and use it in GitHub Desktop.
Save orangewolf/fcdfd6ca137e50fd53242ac6f8a82e2a to your computer and use it in GitHub Desktop.
let token = "FAKE" // Get the token from local storage
let headers = { 'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': `Bearer ${token}`}
fetch("http://localhost:3000/admin/users", {headers: headers})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment