Closed shez1983 closed 3 years ago
I'm very sorry but I can't help you out here. You indicate that the app works properly locally but not on Vapor. My colleagues have also determined this is not a Vapor issue. I'm going to have to ask you to keep trying a support channel, sorry:
of course a paying customer - isnt important. and login functionality isnt important at all..
i have since figured out (with help of someone) that if i change session driver to dynamoDB (Not cookie) it seems to work. but changing it manually isnt correct way as vapor reverts it back on deploy :/
@shez1983 are you able to fix this?
@shez1983 are you able to fix this? @johnabelardom sorry it took me a while as i dont use github as much.. so yeah in my .env i manually set the session driver to dynamo and it seems to be working i think
using Vapor/Amazon MysQl Aurora
Description:
After a while I am unable to login with passport, it returns an invalid_grant error.
Side note: everytime i deploy which run seeder and initialises a client with SET ID & Secret so these dont change
Steps To Reproduce:
i have tried intermittently in between and its been working so for example: i refreshed the database at 10.37 then tried again at these times: 11.56, 13.27, 13.58, and my colleague tried at around 5pm and it was broken.
In the Auth Service provider i have:
i tried removing this code and it still didnt make any difference.
The other thing is, i left the server running locally (plain php artisan serve with mysql hosted via brew/locally) and i tried at 10:25 and tried now and it seems to be working. Normally i would add dump() evrywhere even in vendor but as its deploying on vapor which does composer install and not uplaod vendoer directory i cant :/
I have opened a ticket in laracasts (https://laracasts.com/discuss/channels/code-review/laravel-passport-login-doesnt-work-after-some-time) also asked in discord and larachat and no answer so I am coming here as the F/E (App guys) are getting frustrated and so am I :/ i think it must be vapor issue? my vapor yml file for staging is:
my vapor ID is: 18075 if that helps..