Invalid plugin options ... "register" must be function
try-hardg opened this issue · 1 comments
try-hardg commented
I am upgrading hapi-auth-jwt2 from v7.2.4 to v10.4.0 in my project
getting an error at index.js of hapi-auth-jwt2 at line no 20 failing
register: function (server, options) {server.auth.scheme('jwt', internal.implementation) ....}
Error: Invalid Plugin options {
"register"[1] : {
... whole index.js file gets printed on console ..
}
}
[1] "register" must be function
hapi: "17.0.0",
hapi-auth-jwt2: "10.4.0"
nelsonic commented
@try-hardg apologies for delayed reply. did you figure this out?