The "google-finish-authentication" filter isn't available until Auth is initiated
Closed this issue · 0 comments
saverio commented
When trying to apply the "google-finish-authentication" filter to my route, I noticed that it wasn't actually being fired. After some digging, I realized it was because it wasn't registered yet. The filter is only registered when Auth is initiated, and in my application, when my callback route was fired, the filter didn't yet exist.
To fix this, I just had to set "defer" to false in the LaravelGoogleAuthServiceProvider class. I'm not sure why it's set to be deferred as this class needs to be loaded before routes are fired.