nearform / fastify-auth0-verify

Auth0 verification plugin for Fastify
97 stars 24 forks source link

Support Fastify v5 #366

Closed kou029w closed 1 week ago

kou029w commented 2 weeks ago

When installing fastify v5, the backend immediately crashes with the following error:

FastifyError [Error]: fastify-plugin: fastify-auth0-verify - expected '4.x' fastify version, '5.0.0' is installed
    at Object.checkVersion (/home/ubuntu/fastify-auth0/node_modules/fastify/lib/pluginUtils.js:125:11)
    at Object.registerPlugin (/home/ubuntu/fastify-auth0/node_modules/fastify/lib/pluginUtils.js:148:16)
    at Boot.override (/home/ubuntu/fastify-auth0/node_modules/fastify/lib/pluginOverride.js:28:57)
    at Boot._loadPlugin (/home/ubuntu/fastify-auth0/node_modules/avvio/boot.js:425:25)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  code: 'FST_ERR_PLUGIN_VERSION_MISMATCH',
  statusCode: 500
}

https://github.com/nearform/fastify-auth0-verify/blob/e323b8bb45a2cbacee236186922040dbeb8e1b01/package.json#L66 https://github.com/nearform/fastify-auth0-verify/blob/e323b8bb45a2cbacee236186922040dbeb8e1b01/index.js#L46

github-actions[bot] commented 1 week ago

🎉 This issue has been resolved in version 3.0.0 🎉

The release is available on: