When implementing Laravel 5.4 Passport and calling /oauth/authorize, with the requisite parameters, the Auth middleware redirects to /login when no session is found. Upon logging in a redirect is made back to the /oauth/authorize route to complete the process.
This is working as expected.
However, if we need the user to instead register prior to authorizing then the intended /oauth/authorize uri is no longer redirected to after successfully registration.
I've poured through the middleware and the auth framework code. Only coming up with Redirect::intended(), which is based on a session key of url.intended, but this is null even at the point of showing /login.
Any clues how I could redirect back to the /oauth/authorize page upon registration?