symfony-jwt-article icon indicating copy to clipboard operation
symfony-jwt-article copied to clipboard

You don't need JWT

This application is a demo to show how we can avoid JWT with Symfony.

It's better to read the blog post before playing with it.

Installation

You can create a .env.local file, and override env var defined in .env in it.

composer install
bin/console doctrine:database:create
bin/console doctrine:migration:migration
bin/console doctrine:fixture:load

Key files:

  • Security Controller to get a token
  • security.yaml
  • The user class
  • A very simple JS application