Refactor auth layer from JWT to OAuth 2.0
Alex-D opened this issue · comments
wellá commented
Hey Alex, may I ask you what made you decide to use OAuth2.0 for the authentication for the SPA over the JWT?
Alexandre Demode commented
Finally, I use both OAuth 2.0 and JWT :D
wellá commented
Oh that is internally JWT and external auth being OAuth or how come?
Alexandre Demode commented
I use this bundle if you want to check:
https://github.com/trikoder/oauth2-bundle
itself based on:
https://oauth2.thephpleague.com/
which implements both OAuth2 and JWT at the same time.
wellá commented
Thanks, the same exists in laravel which is "passport" - gonna use that in the next project.
Was just wondering why you replaced it which it seems you did not 😅