SohoHouse / nuxt-oauth

Simple OAuth2 integration for your Nuxt app
MIT License
122 stars 27 forks source link

fix: client route wants to hard reload page #47

Closed hamishhossack closed 4 years ago

hamishhossack commented 4 years ago

Client routing

Currently the client routing will use nuxt context.redirect. This will internally use the client router to switch routes before moving to serve-middleware, therefore casing a flash in layout with potential visible renderings for users.

Now, we use location.assign to redirect users directly to the node process handling requests to the OAuth service.