auth-module icon indicating copy to clipboard operation
auth-module copied to clipboard

[Plugins] OnRedirect hook don't work

Open MitsuhaKitsune opened this issue 3 years ago • 2 comments

Version

module: latest nuxt: 2.15.3

Nuxt configuration

mode:

  • [x] universal
  • [ ] spa

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

  • [x] I have tested with the latest Nuxt version and the issue still occurs
  • [x] I have tested with the latest module version and the issue still occurs
  • [x] I have searched the issue tracker and this issue hasn't been reported yet

MitsuhaKitsune avatar Mar 08 '22 10:03 MitsuhaKitsune

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)

niko-la-petrovic avatar Mar 30 '22 12:03 niko-la-petrovic

+1

vampics avatar Mar 21 '23 15:03 vampics