Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 961 Bytes

Migrating.md

File metadata and controls

17 lines (13 loc) · 961 Bytes

Migrating

Version 2.0.0 introduced a library rename and breaking changes:

Subject Before After
Repository com.liftric:auth:<version> com.liftric:cognito-idp:<version>
Package com.liftric.auth.* com.liftric.cognito.idp.*
Client AuthHandler IdentityProviderClient
Client JS AuthHandlerJS IdentityProviderClientJS
Exceptions NotAuthorizedException IdentityProviderException.NotAuthorized

Besides, also this:

  • The configuration object is no longer needed. You provide the values directly to the IdentityProviderClient constructor.
  • The Region enum has been removed, you now have to pass in the string value.
  • To retrieve custom attributes from the tokens you now have to omit the custom: prefix.