Skip to content

smartinrub/jwt-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 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