Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 514 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 514 Bytes

Complete Auth flow

Board: https://excalidraw.com/#json=43_hu-dirMXxIrB-LHM02,v21yDb0aXGVY4ZKnxz51WA

In this tutorial we learn how to secure APIs with JWT tokens

For unauthorized users

  • Login
  • Register
  • Signin with Github
  • Get Posts
  • Get Post by ID

For Authorized user (with valid JWT token)

  • Get Loggedin User
  • Create Post
  • Update Post
  • Delete Post

.env file

Add these values in the .env file

DB_CONNECTION_URL=

JWT_SECRET_KEY=

GITHUB_OAUTH_CLIENT_ID=
GITHUB_OAUTH_CLIENT_SECRET=