nuxt-community / auth-module

Zero-boilerplate authentication support for Nuxt 2
https://auth.nuxtjs.org
MIT License
1.93k stars 925 forks source link

[Plugins] OnRedirect hook don't work #1686

Open MitsuhaKitsune opened 2 years ago

MitsuhaKitsune commented 2 years ago

Version

module: latest nuxt: 2.15.3

Nuxt configuration

mode:

Nuxt configuration

Reproduction

:warning: without a minimal reproduction we won't be able to look into your issue

What is expected?

When auth plugin redirect to any url, the hook should be executed

What is actually happening?

auth.js plugin it's loaded, but OnRedirect method isn't called

Steps to reproduce

Put auth.js plugin on plugins folder and auth module settings with a OnRedirect hook with minimal console log output for example

Additional information

Checklist

niko-la-petrovic commented 2 years ago

In my local deployment, whenever I refresh the page or navigate through the address bar to a page in my SPA PWA, onRedirect is called. However, in my deployment environment, onRedirect isn't being called whenever I refresh or navigate using the address bar. Could this be due to my PWA being behind a reverse proxy?

(SPA, nuxt 2.15.17)

vampics commented 1 year ago

+1