Lumen with JWT Authentication
Basically this is a starter kit for you to integrate Lumen with JWT Authentication
- You can now use:
` ?> with email and password, obtain a JWT token
` ?> anyone gets a list of all the posts in the database
` ?> any authenticated user (using JWT, for instance) can create a post
` ?> the Owner of :post_id (authenticated using JWT, for instance) can modify the post
And remember, JWT requires you to provide the token as a header.