fix authApiBase (#264)
parent
55ecfaca7b
commit
c43f885bc1
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
|
|
@ -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
|
|
@ -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
|
|
@ -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 });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue