class SmartReceiptsAuthenticationProvider extends AWSAbstractCognitoDeveloperIdentityProvider {

    @Override
    public String getIdentityId() {
        Logger.info(this, "Requesting Identity Id");
        final Optional<Cognito> cognitoOptional = cognitoIdentityProvider.getCachedCognitoToken();

        return cognitoOptional.isPresent() ? cognitoOptional.get().getIdentityId() : null;
    }

    public  SmartReceiptsAuthenticationProvider(@NonNull CognitoIdentityProvider cognitoIdentityProvider, @NonNull Regions regions);

}