johnbrett / hapi-auth-bearer-token

Simple Bearer authentication scheme plugin for hapi, accepts token by Header, Cookie or Query parameter.
MIT License
218 stars 46 forks source link

Library does not work with the new independent "joi" library which has now split from @hapi/joi #209

Closed eric-swann-q2 closed 3 years ago

eric-swann-q2 commented 4 years ago

Library does not work with the new independent "joi" library which has now split from @hapi/joi.

This lib has dependencies on @hapi/joi and @hapi/boom.
The @hapi/joi dependency in particular causes a collision when using the new joi library as joi detects two versions and throws an exception.

Solution: Instead set both of the libraries as peer dependencies for maximum flexibility and reference "joi" as opposed to "@hapi/joi" for future versions.

johnbrett commented 3 years ago

Resolved by https://github.com/johnbrett/hapi-auth-bearer-token/pull/210

Released in v8.0.0.