src/client.js
/**
   * Perform dynamic client registration on the server
   * @param {*} server The base url of the remote server
   * 
   */
Perform dynamic client registration on the server
@param {*} server The base url of the remote server
Perform dynamic client registration on the server @param { * } server The base url of the remote server
async register(server) {
    let config = await this.getClientConfiguration(server)
    if (config) {
      return config
    } else {
      let serverConfig = await this.getServerConfiguration(server)
      if (!serverConfig.registration_endpoint) {
        console.log("Registration not enabled at server ", server); ß
        return null
      } else {
        let response = await axios.post(serverConfig.registration_endpoint, this.generateRegistrationMetaData())
        await this.addClientConfiguration(server, response.data)
        return response.data;
      }
    }
  }
async register ( server ) { let config = await this . getClientConfiguration ( server ) if ( config ) { return config } else { let serverConfig = await this . getServerConfiguration ( server ) if ( ! serverConfig . registration_endpoint ) { console . log ( "Registration not enabled at server " , server ) ; ß return null } else { let response = await axios . post ( serverConfig . registration_endpoint , this . generateRegistrationMetaData ( ) ) await this . addClientConfiguration ( server , response . data ) return response . data ; } } }
Perform dynamic client registration on the server
 @param {*} server The base url of the remote server
Perform dynamic client registration on the server @param { * } server The base url of the remote server