Backend implementation of authentication by Laravel Passport in Vue Nuxt.JS application.
.ENV config (my config in .env.example):
- PASSPORT_CLIENT_ID and PASSPORT_CLIENT_SECRET must contains id and secret from Laravel Password Grant Client
- CORS_ALLOWED_ORIGINS must contains allowed domains (local and production) with (if any) ports AND protocols of frontend app
CORS config file (my config in config/cors.php)
- 'supports_credentials' leave to false
- 'path' must contains allowed urls paths