You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :
`
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();
})
`
The text was updated successfully, but these errors were encountered: