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
Imagine the following code:
"use strict"; const axios = require("axios"); const jose = require("node-jose"); async function working(url) { const jwksResponse = await axios.get(url); // do i need to iterate through the keys? return await jose.JWK.createKeyStore().add(jwksResponse.data.keys[0], "jwk"); } async function notWorking(url) { const jwksResponse = await axios.get(url); return await jose.JWK.createKeyStore().add(jwksResponse.data, "jwk"); } async function main() { const publicKeyStore = await working( "https://login.microsoftonline.com/common/discovery/v2.0/keys" ); console.log(publicKeyStore); publicKeyStore = await notWorking( "https://login.microsoftonline.com/common/discovery/v2.0/keys" ); } main();
My expectation was:
Am I missing something please?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Imagine the following code:
My expectation was:
Am I missing something please?
The text was updated successfully, but these errors were encountered: