How to use the @tanker/identity._deserializePublicIdentity function in @tanker/identity

To help you get started, we’ve selected a few @tanker/identity examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TankerHQ / sdk-js / packages / functional-tests / src / fake-authentication.js View on Github external
const expectMatchingPublicIdentities = (identityA: string, identityB: string) => expect(
    _deserializePublicIdentity(identityA),
  ).to.deep.equal(
    _deserializePublicIdentity(identityB),
  );
github TankerHQ / sdk-js / packages / functional-tests / src / fake-authentication.js View on Github external
const expectMatchingPublicIdentities = (identityA: string, identityB: string) => expect(
    _deserializePublicIdentity(identityA),
  ).to.deep.equal(
    _deserializePublicIdentity(identityB),
  );
github TankerHQ / sdk-js / packages / core / src / __tests__ / UserAccessor.spec.js View on Github external
const toPublicIdentity = async (identity): Promise => {
      const publicIdentity = await getPublicIdentity(identity);
      return (_deserializePublicIdentity(publicIdentity): any);
    };
    const toPublicIdentities = (list): Promise> => Promise.all(list.map(toPublicIdentity));
github TankerHQ / sdk-js / packages / core / src / Groups / Manager.js View on Github external
    const deserializedIdentities = publicIdentities.map(i => _deserializePublicIdentity(i));
    const { permanentIdentities, provisionalIdentities } = _splitProvisionalAndPermanentPublicIdentities(deserializedIdentities);
github TankerHQ / sdk-js / packages / core / src / DataProtection / DataProtector.js View on Github external
    const deserializedIdentities = (sharingOptions.shareWithUsers || []).map(i => _deserializePublicIdentity(i));
    const deserializedIdentitiesWithSelf = this._handleShareWithSelf(deserializedIdentities, shareWithSelf);