forked from loafle/openapi-generator-original
[typescript-axios] add promise to bearer and oauth tokens (#7132)
This commit is contained in:
parent
f5775f483a
commit
f752f29af2
@ -87,8 +87,8 @@ export const {{classname}}AxiosParamCreator = function (configuration?: Configur
|
||||
// http bearer authentication required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const accessToken = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken()
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken()
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
||||
}
|
||||
{{/isBasicBearer}}
|
||||
@ -96,8 +96,8 @@ export const {{classname}}AxiosParamCreator = function (configuration?: Configur
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("{{name}}", [{{#scopes}}"{{{scope}}}"{{^-last}}, {{/-last}}{{/scopes}}])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("{{name}}", [{{#scopes}}"{{{scope}}}"{{^-last}}, {{/-last}}{{/scopes}}])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
{{/isOAuth}}
|
||||
|
@ -6,7 +6,7 @@ export interface ConfigurationParameters {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
username?: string;
|
||||
password?: string;
|
||||
accessToken?: string | ((name?: string, scopes?: string[]) => string);
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
basePath?: string;
|
||||
baseOptions?: any;
|
||||
}
|
||||
@ -20,14 +20,14 @@ export class Configuration {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
@ -38,10 +38,10 @@ export class Configuration {
|
||||
* @param scopes oauth2 scope
|
||||
* @memberof Configuration
|
||||
*/
|
||||
accessToken?: string | ((name?: string, scopes?: string[]) => string);
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
/**
|
||||
* override base path
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
|
@ -17,7 +17,7 @@ export interface ConfigurationParameters {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
username?: string;
|
||||
password?: string;
|
||||
accessToken?: string | ((name?: string, scopes?: string[]) => string);
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
basePath?: string;
|
||||
baseOptions?: any;
|
||||
}
|
||||
@ -31,14 +31,14 @@ export class Configuration {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
@ -49,10 +49,10 @@ export class Configuration {
|
||||
* @param scopes oauth2 scope
|
||||
* @memberof Configuration
|
||||
*/
|
||||
accessToken?: string | ((name?: string, scopes?: string[]) => string);
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
/**
|
||||
* override base path
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
|
@ -279,8 +279,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -335,8 +335,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -389,8 +389,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -443,8 +443,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -547,8 +547,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -605,8 +605,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -670,8 +670,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ export interface ConfigurationParameters {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
username?: string;
|
||||
password?: string;
|
||||
accessToken?: string | ((name?: string, scopes?: string[]) => string);
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
basePath?: string;
|
||||
baseOptions?: any;
|
||||
}
|
||||
@ -31,14 +31,14 @@ export class Configuration {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
@ -49,10 +49,10 @@ export class Configuration {
|
||||
* @param scopes oauth2 scope
|
||||
* @memberof Configuration
|
||||
*/
|
||||
accessToken?: string | ((name?: string, scopes?: string[]) => string);
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
/**
|
||||
* override base path
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
|
@ -279,8 +279,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -335,8 +335,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -389,8 +389,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -443,8 +443,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -547,8 +547,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -605,8 +605,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -670,8 +670,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ export interface ConfigurationParameters {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
username?: string;
|
||||
password?: string;
|
||||
accessToken?: string | ((name?: string, scopes?: string[]) => string);
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
basePath?: string;
|
||||
baseOptions?: any;
|
||||
}
|
||||
@ -31,14 +31,14 @@ export class Configuration {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
@ -49,10 +49,10 @@ export class Configuration {
|
||||
* @param scopes oauth2 scope
|
||||
* @memberof Configuration
|
||||
*/
|
||||
accessToken?: string | ((name?: string, scopes?: string[]) => string);
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
/**
|
||||
* override base path
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
|
@ -319,8 +319,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -384,8 +384,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -438,8 +438,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -492,8 +492,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -596,8 +596,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -654,8 +654,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -719,8 +719,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ export interface ConfigurationParameters {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
username?: string;
|
||||
password?: string;
|
||||
accessToken?: string | ((name?: string, scopes?: string[]) => string);
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
basePath?: string;
|
||||
baseOptions?: any;
|
||||
}
|
||||
@ -31,14 +31,14 @@ export class Configuration {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
@ -49,10 +49,10 @@ export class Configuration {
|
||||
* @param scopes oauth2 scope
|
||||
* @memberof Configuration
|
||||
*/
|
||||
accessToken?: string | ((name?: string, scopes?: string[]) => string);
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
/**
|
||||
* override base path
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
|
@ -279,8 +279,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -335,8 +335,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -389,8 +389,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -443,8 +443,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -547,8 +547,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -605,8 +605,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -670,8 +670,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ export interface ConfigurationParameters {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
username?: string;
|
||||
password?: string;
|
||||
accessToken?: string | ((name?: string, scopes?: string[]) => string);
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
basePath?: string;
|
||||
baseOptions?: any;
|
||||
}
|
||||
@ -31,14 +31,14 @@ export class Configuration {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
@ -49,10 +49,10 @@ export class Configuration {
|
||||
* @param scopes oauth2 scope
|
||||
* @memberof Configuration
|
||||
*/
|
||||
accessToken?: string | ((name?: string, scopes?: string[]) => string);
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
/**
|
||||
* override base path
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
|
@ -55,8 +55,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -111,8 +111,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -165,8 +165,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -219,8 +219,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -323,8 +323,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -381,8 +381,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -446,8 +446,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ export interface ConfigurationParameters {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
username?: string;
|
||||
password?: string;
|
||||
accessToken?: string | ((name?: string, scopes?: string[]) => string);
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
basePath?: string;
|
||||
baseOptions?: any;
|
||||
}
|
||||
@ -31,14 +31,14 @@ export class Configuration {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
@ -49,10 +49,10 @@ export class Configuration {
|
||||
* @param scopes oauth2 scope
|
||||
* @memberof Configuration
|
||||
*/
|
||||
accessToken?: string | ((name?: string, scopes?: string[]) => string);
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
/**
|
||||
* override base path
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
|
@ -279,8 +279,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -335,8 +335,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -389,8 +389,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -443,8 +443,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -547,8 +547,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -605,8 +605,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -670,8 +670,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ export interface ConfigurationParameters {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
username?: string;
|
||||
password?: string;
|
||||
accessToken?: string | ((name?: string, scopes?: string[]) => string);
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
basePath?: string;
|
||||
baseOptions?: any;
|
||||
}
|
||||
@ -31,14 +31,14 @@ export class Configuration {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
@ -49,10 +49,10 @@ export class Configuration {
|
||||
* @param scopes oauth2 scope
|
||||
* @memberof Configuration
|
||||
*/
|
||||
accessToken?: string | ((name?: string, scopes?: string[]) => string);
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
/**
|
||||
* override base path
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
|
@ -279,8 +279,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -335,8 +335,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -389,8 +389,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -443,8 +443,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -547,8 +547,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -605,8 +605,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
@ -670,8 +670,8 @@ export const PetApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// oauth required
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: configuration.accessToken;
|
||||
? await configuration.accessToken("petstore_auth", ["write:pets", "read:pets"])
|
||||
: await configuration.accessToken;
|
||||
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ export interface ConfigurationParameters {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
username?: string;
|
||||
password?: string;
|
||||
accessToken?: string | ((name?: string, scopes?: string[]) => string);
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
basePath?: string;
|
||||
baseOptions?: any;
|
||||
}
|
||||
@ -31,14 +31,14 @@ export class Configuration {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
@ -49,10 +49,10 @@ export class Configuration {
|
||||
* @param scopes oauth2 scope
|
||||
* @memberof Configuration
|
||||
*/
|
||||
accessToken?: string | ((name?: string, scopes?: string[]) => string);
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
/**
|
||||
* override base path
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user