We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
working writing some unit tests.
the token is a valid token.
trying to authenticate my request like this:
const response = await server.inject({ method: "GET", url: "/api/posts", headers: { Authorization: token } });
and this:
const response = await server.inject({ method: "GET", url: "/api/posts", credentials: token });
both are giving me false positives.
i setup my auth strategy like this
await server.register(require("hapi-auth-jwt2")); server.auth.strategy("jwt", "jwt", { key: Config.key, validate: validate, verifyOptions: { algorithms: ["HS256"] } });
does anyone have any clarity on how i should be using server.inject() with this plugin?
server.inject()
The text was updated successfully, but these errors were encountered:
how did you solve this ?
Sorry, something went wrong.
No branches or pull requests
working writing some unit tests.
the token is a valid token.
trying to authenticate my request like this:
and this:
both are giving me false positives.
i setup my auth strategy like this
does anyone have any clarity on how i should be using
server.inject()
with this plugin?The text was updated successfully, but these errors were encountered: