Skip to content

Spring Boot Application with JWT generation example

Notifications You must be signed in to change notification settings

kidmam/jwt-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jwt-example

Usage Example

Get JWT token

curl -H "Content-Type: application/json" -X POST -d '{"email":"email@domain.com","password":"Password1"}' http://localhost:8080/token

Use JWT token

curl -H "Authorization: Bearer <jwt_token>" -X GET http://localhost:8080/index

jwt token only valid for 30 seconds

About

Spring Boot Application with JWT generation example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%