Replies: 1 comment 3 replies
-
|
I think that's something you should be easily able to achieve in your own code. import * as jose from "jose";
const local = jose.createLocalJWKSet({ keys: [] });
const remote = jose.createRemoteJWKSet(new URL(""));
const combined: jose.JWTVerifyGetKey = async (...args) => {
try {
return await local(...args);
} catch {
return await remote(...args);
}
}; |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What do you think of a function that takes the options of both functions, uses the local keys if there are any that match, and only reaches out for remote JWKs if there is no match? I.e. remote becomes a fallback for local
Beta Was this translation helpful? Give feedback.
All reactions