Replies: 1 comment 2 replies
-
can you elaborate on this please?
You mean Node.js's http.IncomingMessage is incompatible with the Fetch API's
Interesting, I dread ever introducing TokenSet to begin with and am happy to see it gone in favour of actual protocol response representations with much simpler helpers.
expires_at was a getter posing as a response parameter which doesn't in reality exist on an OAuth 2.0 Token Endpoint Response. It was a silly thing to have to begin with.
I haven't got the slightest clue what this may refer to, any details are welcome. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there, I have been using openid-client for a gov. website for over 3 years (with Typescript) and had been struggling for days to upgrade to 6.x. I understand a lot of the global client config options have been made endpoint-specific and/or optional as request params and that gives more fine-grained control. I would love to see a small migration example for a simple code grant login flow, even if it's just a before - after comparison v5/v6 because the entire surface API has dramatically changed (mourning the substitution of
TokenSet
withTokenEndpointResponse & TokenEndpointResponseHelpers
, and especially the new loose typing of theparameters
param ofbuild*
methods, asparameters: URLSearchParams | Record<string, string>
gives you 0 hint about what kind of param is expected, a.o.).In the end I got the basic login/logout flows working again but it would have been much easier if there was a "Migrating from v5 to v6" section in the docs or in the release: https://github.com/panva/openid-client/releases/tag/v6.0.0, that shows you more or less how the flows and especially the public API has been remapped, eg:
JsonValue
, this is causing a lot of issues passing around strings, and especially with unit test mocks (resorting to hacks likeas JsonValue
)Request
param (for building URLs) is unfortunately incompatible with Express.js requestsI am also under the impression that error names/codes changed, I had to alter passing the baseURL for redirect_uri's whereas that used to be auto-concatenated? But I may be wrong here.
Beta Was this translation helpful? Give feedback.
All reactions