• Resolved stoi2m1

    (@stoi2m1)


    I am using this plugin with a theme using Vue to make a single page app which is also a progressive web app.

    I am using JWT for my login process and works like it should when the PWA plugin is disabled.

    However, once I activate and login the returned data from an XHR request is missing key data of a logged in user. I check for a current user in my php functions and the current user id returned is 0. So, some part of my login process is not happening on the backend.

    Do you have any suggestions of other things I should look into?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Magazine3

    (@magazine3)

    We suggest you put “login URL, member URL” in excluding from cache area: https://pwa-for-wp.com/docs/article/pwa-urls-exclude-from-cache-list/

    Thread Starter stoi2m1

    (@stoi2m1)

    Does this mean I need to exclude every page from being cached? Every page has member specific data that is revealed based on their membership level. All accept the homepage that is.

    Thread Starter stoi2m1

    (@stoi2m1)

    I managed to fix my issue by checking “Remove pwa for logged in users”.

    Plugin Author Magazine3

    (@magazine3)

    You need to exclude only those areas where you want to show always without cache data like members profile area, dashboard and ther things.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Login Issues with JWT’ is closed to new replies.