While migrating from v3 to v4, I got stuck with the Users&Permissions plugin, trying to edit some role access. The strange thing is that I can access other sections in the admin panel, like settings → Users&Permissions → Providers,
but when I try Roles, it gives a 401 error and logs me out. Thanks to this forum post I found the error in the source code:
It occurs in the verify(token) function on @strapi/plugin-users-permissions/server/services/jwt.js
It seems this check should not happen at all, since it’s not triggered on other sections, or when removing the prefix: ‘’ option.
This is happening in several sections of the admin, not only Roles page.
Due to compatibility with existing project on v3, I need to remove the hardcoded prefix. Please help ?
This topic has been created from a Discord post (1297992828978466868) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord