Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid plugin options ... "register" must be function #388

Open
try-hardg opened this issue Jan 30, 2023 · 1 comment
Open

Invalid plugin options ... "register" must be function #388

try-hardg opened this issue Jan 30, 2023 · 1 comment

Comments

@try-hardg
Copy link

try-hardg commented Jan 30, 2023

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
Copy link
Member

@try-hardg apologies for delayed reply. did you figure this out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants