Repository navigation
[oidc-provider]: Export Client adapter property #75655
Unanswered
dbnicholson
asked this question in
Issues with a @types package
Replies: 2 comments
|
Thanks for the discussion about " Pinging the DT module owners: @panva. |
0 replies
|
Yeah, it's just missing from the Until it's added you can widen the type locally: import Provider, { type Adapter } from "oidc-provider";
const { adapter } = provider.Client as typeof provider.Client & { readonly adapter: Adapter };
await adapter.upsert("temp-client", {
client_id: "temp-client",
client_secret: "test-secret",
redirect_uris: ["http://localhost:3000/cb"],
});With oidc-provider 9.13.0, after that upsert (I used Claude Code to check this.) |
0 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.
During testing, it's useful to be able to create a temporary client. That requires calling
Client.adapter.upsert, but theadapterproperty isn't available in theClientclass.All reactions