fix authApiBase (#264)

sweep/improve-logging-information
Meng Zhang 2023-06-23 10:56:00 -07:00 committed by GitHub
parent 55ecfaca7b
commit c43f885bc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 75 additions and 77 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -634,7 +634,7 @@ var _Auth = class extends import_events.EventEmitter {
this.jwt = null;
this.endpoint = options.endpoint;
this.dataStore = options.dataStore || dataStore;
const authApiBase = this.endpoint.replace(/\/tabby\/?$/, "/api");
const authApiBase = "https://app.tabbyml.com/api";
this.authApi = new CloudApi({ BASE: authApiBase });
}
static async create(options) {

File diff suppressed because one or more lines are too long

View File

@ -13360,7 +13360,7 @@ var _Auth = class extends EventEmitter {
this.jwt = null;
this.endpoint = options.endpoint;
this.dataStore = options.dataStore || dataStore;
const authApiBase = this.endpoint.replace(/\/tabby\/?$/, "/api");
const authApiBase = "https://app.tabbyml.com/api";
this.authApi = new CloudApi({ BASE: authApiBase });
}
static async create(options) {

File diff suppressed because one or more lines are too long

View File

@ -48,9 +48,7 @@ export class Auth extends EventEmitter {
this.endpoint = options.endpoint;
this.dataStore = options.dataStore || dataStore;
// From tabby endpoint: http[s]://{namespace}.app.tabbyml.com/tabby[/]
// To auth endpoint: http[s]://{namespace}.app.tabbyml.com/api
const authApiBase = this.endpoint.replace(/\/tabby\/?$/, "/api");
const authApiBase = "https://app.tabbyml.com/api";
this.authApi = new CloudApi({ BASE: authApiBase });
}