Closed manuel-di-iorio closed 4 years ago
const { metadata } = await Issuer.discover("discover server URL")
const issuer = new Issuer({
revocation_endpoint: "manually provided server revocation URL",
...metadata
})
Is that not the clear go to?
Nice solution, ty
Is your feature request related to a problem? Please describe. The discovery server I'm connecting to, does not return the revocation endpoint in the metadata but it actually does have one. In order to revoke user tokens I'd like to manually provide the revocation endpoint to the issuer/client but looks like the issuer.metadata object is read-only.
Example code:
Describe the solution you'd like Being able to replace
issuer.metadata.revocation_endpoint
or provide it in another way in order to callclient.revoke()