If my Laravel JSON API needs to use Passport for API to API communication (a microservice architecture) AND be available to phone apps and SPAs on different domains, do I need to use both Passport and Sanctum to achieve this? It looks to me like they have conflicting traits and are not really meant to work side by side.
Does anyone have any experience with this? Do I need to cheat cookie auth into Passport oder can I run them both side by side somehow?
The Authorization Code grant with "Proof Key for Code Exchange" (PKCE) is a secure way to authenticate single page applications or native applications to access your API.
Oh thank you, I didn't know about PKCE. I'll try that.
It's still strange that there is so few information about this and I see a lot of big faces ask about it on Twitter.