Open voicenter opened 1 month ago
Hello @voicenter . If you have patched the code, can you make a PR with the patch please?
@voicenter can you please describe the use case for the patch. I don't understand how to make the same functionality for the bun release.
@voicenter ping 👋
For client who send token or any other authentication type we need to replace the prefix , We are patch the code before the basic auth plugin with that code : `
fastify.addHook('onRequest', (request, reply, done) => { this.authorizationPrefix = 'Token' if(request.headers['Authorization'] && this.authorizationPrefix) { request.headers['Authorization'] = request.headers['Authorization'].replace(this.authorizationPrefix, '') } done();
}) `