jackbrycesmith/laravel-caprover-template

Passport oauth client, where should I initialize keys?

Closed this issue · 1 comments

Hi, thanks for creating the repo its awesome.

I'd like to know whats ur approach when it comes to passport:install / passport:keys, assuming we want to Laravel to be stateless.

Hi there 👋,

I would generate the keys on your local machine, then load them as environment variables as mentioned here: https://laravel.com/docs/7.x/passport#deploying-passport

image

Then make sure to add PASSPORT_PRIVATE_KEY & PASSPORT_PUBLIC_KEY to the Dockerfile, and you should be good to go!