Getting custom passport strategy to work.

default discord avatar
4 weeks ago

I created a custom passport strategy and everything works as intended api wise. However, when I go to the admin panel i run into: Module not found: Error: Can't resolve 'util' in '/home/node/app/node_modules/jwa'

This happens when i use jsonwebtoken import. i've tried the resolutions given in the logs but none of them work. if you've solved this issue please let me know as i'm not an expert in webpack.

I've also tried following this:

i was able to get around it by using jose instead of jsonwebtoken and jwks-rsa

  • discord user avatar
    Payload Team
    3 weeks ago

    Hey @snackdex glad you were able to get this sorted out! Feel free to open another thread if you run into anything else.

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!


Connect with the Payload Community on Discord



Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.