src/oauth.js
/**
     * Checks if the given OAuth credentials are correct
     *
     * Use this before using any other method!
     *
     * @author LeonMrBonnie
     * @memberof OAuth
     */
Checks if the given OAuth credentials are correct
Use this before using any other method!


Checks if the given OAuth credentials are correct Use this before using any other method!
async checkCredentials() {
        let response = await phin(
            `${BASE_URL}/api/credentials/check?id=${
                this.projectId.split("-")[1]
            }&key=${this.apiKey}`
        );
        let valid = JSON.parse(response.body).response;
        if (!valid) throw new CredentialsError();
        else return;
    }
async checkCredentials ( ) { let response = await phin ( ` ${ BASE_URL } ${ this . projectId . split ( "-" ) [ 1 ] } ${ this . apiKey } ` ) ; let valid = JSON . parse ( response . body ) . response ; if ( ! valid ) throw new CredentialsError ( ) ; else return ; }
Checks if the given OAuth credentials are correct
 Use this before using any other method!
Checks if the given OAuth credentials are correct Use this before using any other method!