Skip to content

api.setEnvironment call required before use. No mention in docs. #135

@aviynw

Description

@aviynw

var api = new HydrogenProtonApi.AuthApi();

There is no mention in the docs of needing to do.
api.setEnvironment("https://api.hydrogenplatform.com")

before making calls like api.createUsingPostClientCredentials()

but if you don't, this.tokenUrl is null when the callApi function runs
var request = superagent(httpMethod, this.tokenUrl + path);

which leads to a dns error because the hostname can't be resolved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions