- fix #6 (access token in not available) (thanks @pauldailly)
- the signature of the decorator function has changed. Initialy, only the
idToken
was given to the function, now all the tokens are given (idToken
+accessToken
). To migrate your decorators, you just need to use theidToken
of thetokens
object
const ProtectedComponent = protect(Component, {
decorators: {
- HTTP: (request, token) => {
+ HTTP: (request, tokens) => {
return {
...request,
headers: {
...request.headers,
- "Authorization": "Bearer:" + token
+ "Authorization": "Bearer:" + tokens.accessToken
}
}
}
}
});
Auth0 is deprecating the getProfile
method. In order to be able to use the getUserInfo
instead, the driver now send all the tokens given by Auth0 to your application
- the
token$
source is replaced with thetokens$
source - the
tokens$
stream now emits an object instead of a singletoken
{
idToken: "...", // the id token
accessToken: "..." // the access token
}
- the
getUserInfo
method is now available