Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.37 KB

changelog.md

File metadata and controls

50 lines (36 loc) · 1.37 KB

4.0.0

  • fix #6 (access token in not available) (thanks @pauldailly)

Breaking changes

Component Wrapper's breaking changes

  • 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 the idToken of the tokens object
const ProtectedComponent = protect(Component, {
    decorators: {
-       HTTP: (request, token) => {
+       HTTP: (request, tokens) => {
            return {
                ...request,
                headers: {
                    ...request.headers,
-                   "Authorization": "Bearer:" + token
+                   "Authorization": "Bearer:" + tokens.accessToken
                }
            }
        }
    }
});

3.0.0

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

Breaking changes

Driver's breaking changes

  • the token$ source is replaced with the tokens$ source
  • the tokens$ stream now emits an object instead of a single token
{
    idToken: "...", // the id token
    accessToken: "..." // the access token
}

New feature

  • the getUserInfo method is now available