Version 13 to 14
In this version the APP_INITIALIZER was removed. (See PR). The library will not do anything until the application interact with it. There is no pre-loading of anything and it does not affect your application's bootstrapping process at all. You can however explicitly preload the secure token server well-known endpoints with a new method called preloadAuthWellKnownDocument(). As a side effect because the config has to be loaded first, a lot of APIs become reactive and return an Observable now.
All changes are described below.
eagerLoadAuthWellKnownEndpoints
was removed#
The secure token server well known endpoints are always eager loaded expect loading it explicitly using thepreloadAuthWellKnownDocument() method. No option needed anymore.
getConfiguration
now returns an Observable#
Old:
New:
getUserData
now returns an Observable#
Old:
New:
checkAuthMultiple
does not take a configId
parameter anymore.#
If you want to check a single config, use checkAuth
with a configId
param instead.
Old:
New:
isAuthenticated
now returns an Observable#
Old:
New:
getAccessToken
now returns an Observable#
Old:
New:
getIdToken
now returns an Observable#
Old:
New:
getRefreshToken
now returns an Observable#
Old:
New:
getAuthenticationResult
now returns an Observable#
Old:
New:
getPayloadFromIdToken
now returns an Observable#
Old:
New:
setState
now returns an Observable#
Old:
New:
getState
now returns an Observable#
Old:
New:
getEndSessionUrl
now returns an Observable#
Old:
New:
#
Providing a Custom Storage ServiceThe storage
property was removed of the config to provide a better usage to use an own custom storage. With the new syntax, you can pass your own service in a better way and even pass custom dependencies using the Dependency providers of Angular.
Old:
New: