@inrupt/solid-client-authn-node
Advanced tools
Changelog
2.0.0 - 2023-12-20
fetch
function is used instead of @inrupt/universal-fetch
.
This means this library now only works with Node 18 and higher.Session
class no longer extends EventEmitter
. Instead, it exposes an events
attribute implementing
EventEmitter
. We do not recommend to use Session
instance's events
attribute as an arbitrary events emitter,
and encourage users to only use the supported events and documented API.Session
methods onLogin
, onLogout
, onError
, onSessionRestore
, onSessionExpiration
and onNewRefreshToken
have been removed. They are replaced by calls to session.events.on
, using the appropriate event name.Session
constructor changes:
onNewRefreshToken
parameter is no longer supported. Its usage is replaced by calling session.events.on
using the EVENTS.NEW_REFRESH_TOKEN
constant as a first parameter, and a callback handling the token as a
second parameter.useEssSession
parameter is no longer supported.getClientAuthenticationWithDependencies
is no longer exported as part of the public API, and is now internal-only.@inrupt/oidc-client-ext
is no longer available. Since this is a package only intended to be
consumed by @inrupt/solid-client-authn-browser
, which doesn't have a UMD build, this change should have no
impact.rollup-plugin-typescript2
to @rollup/plugin-typescript
. Although this should not be a breaking change,
upgrading may require extra attention.Changelog
1.17.4 - 2023-11-09
iss
parameter: RFC9207 adds
an iss
parameter to the callback IRI, and the Node library wasn't removing it before comparing the effective callback URL to the URL used
when making the Authorization request.Changelog
1.17.3 - 2023-10-10
Changelog
1.17.2 - 2023-09-15
Changelog
1.17.0 - 2023-07-14
Changelog
1.14.0 - 2023-03-23
Session
exposes an events
attribute implementing EventEmitter
, with
type hints to guide which events are supported. It allows to register a callback
listening on events using session.events.on
, but also to unregister a callback
using session.events.off
, or to register a one-off callback using session.events.once
.
This attribute intends at replacing exising Session
methods to listen on events,
namely onLogin
, onLogout
, onError
, onSessionRestore
, onSessionExpiration
,
onNewRefreshToken
.