Skip to content

Instantly share code, notes, and snippets.

@sbin0819
Last active June 30, 2022 22:13
Show Gist options
  • Save sbin0819/934607f5b1baf7af324450b3b541b11d to your computer and use it in GitHub Desktop.
Save sbin0819/934607f5b1baf7af324450b3b541b11d to your computer and use it in GitHub Desktop.

Authentication

# POST in terminal
$ curl -X POST http://localhost:4000/auth/login -d '{"username": "john", "password": "changeme"}' -H "Content-Type: application/json"
curl http://localhost:4000/profile -H "Authorization: Bearer ey..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment