src/index.js
/**
   * Private method for registering new user within DID directory.
   * In the future this would be reposnsibility of the partner.
   * @async
   * @ignore
   * @return {Promise} axios promise and if success http code 200
   */
Private method for registering new user within DID directory.
In the future this would be reposnsibility of the partner.
@async
@ignore
@return {Promise} axios promise and if success http code 200
Private method for registering new user within DID directory . In the future this would be reposnsibility of the partner . @async @ignore @return { Promise } axios promise and if success http code 200
register() {
    let url = this.host;
    const { invitationCode } = this.config;
    const userDID = `did:sov:${this.identity.did}`;
    const userPublicKey = this.identity.encryptionPublicKey;
    url += '/api/register';
    return axios.post(url, {
      invitationCode,
      userDID,
      userPublicKey,
    });
  }
register ( ) { let url = this . host ; const { invitationCode } = this . config ; const userDID = ` ${ this . identity . did } ` ; const userPublicKey = this . identity . encryptionPublicKey ; url += '/api/register' ; return axios . post ( url , { invitationCode , userDID , userPublicKey , } ) ; }
Private method for registering new user within DID directory.
Private method for registering new user within DID directory .