3.0.0
Breaking changes
General
- require Node.JS version 16 or higher (1f81b29)
auth
- remove
addUserandremoveUserfromAuthProviderinterface (e298da3) - make
clientIdread-only inAuthProviderinterface (61af3d8) - rename
RefreshConfiginterface toRefreshingAuthProviderConfig(4825d43) - make
refreshTokenandexpiresInnullable (f8312e0) - remove the second param with initial users array from
StaticAuthProviderandRefreshingAuthProviderconstructors (427798c) - rename helper function
getAccessTokentoexchangeCode(991e8b8) - use
EventEmitterto listen to refresh token events instead ofonRefreshcallback in the auth provider config (c50c848) - rename
scopetoscopesinAcessTokeninterface (8258274) - make
AccessTokenproperties read-only (2d50560) - narrow
AccessTokenparam inStaticAuthproviderto include onlyaccessTokenandscopes(8377f41) - create
AccessTokenWithUserIdinterface and makegetAccessTokenandrefreshAccessTokenreturn it (9385550)
events
- get rid of throwing an error in
removeUsermethod if a user is not registered (a7ccf0a)
Features
auth
- create
InvalidTokenError(4193766) - add
hasUsermethod toStaticAuthProviderandRefreshingAuthProvider(85091be) - add
addUserForTokenandaddUserForCodetoRefreshingAuthProvider(c7349dd) - add scopes check for
addUsermethod inStaticAuthProviderandRefreshingAuthProvider(23d7e56) - add simple non-falsy token validation in
StaticAuthProviderandRefreshingAuthProvider(de93353)
events
- add
hasUsermethod toEventsClient(2a8f517) - add
onConnectandonDisconnectlisteners toEventsClient(17b4de5)
All other changes relate to the documentation or small refactors,