attlaz-client 1.17.1 → 1.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -23,7 +23,7 @@ export declare class OAuthClient {
|
|
|
23
23
|
enableDebug(): void;
|
|
24
24
|
disableDebug(): void;
|
|
25
25
|
isDebugEnabled(): boolean;
|
|
26
|
-
|
|
26
|
+
getAuthorizationUrl(options?: QueryString | null): string;
|
|
27
27
|
getDefaultHeaders(): Headers;
|
|
28
28
|
private isNodeEnvironment;
|
|
29
29
|
private tokenToOauthClientToken;
|
package/dist/Http/OAuthClient.js
CHANGED
|
@@ -171,11 +171,11 @@ export class OAuthClient {
|
|
|
171
171
|
isDebugEnabled() {
|
|
172
172
|
return this.debug;
|
|
173
173
|
}
|
|
174
|
-
|
|
174
|
+
getAuthorizationUrl(options = null) {
|
|
175
175
|
if (options === null) {
|
|
176
176
|
options = new QueryString();
|
|
177
177
|
}
|
|
178
|
-
options.setCommand(this.getApiEndpointUrl(this.options.
|
|
178
|
+
options.setCommand(this.getApiEndpointUrl(this.options.authorizationUri));
|
|
179
179
|
return options.build();
|
|
180
180
|
}
|
|
181
181
|
getDefaultHeaders() {
|