Add Hose assistance link onboarding (#13)

This commit is contained in:
gitea committed 2026-09-02 14:33:37 +08:00
1 parent 9f3975a6a5
commit 4ce206a2ce
13 files changed
+527 -17

No files matched your search

+5 -1
View File
@@ -32,8 +32,12 @@ export async function createSealClient(corp: CorpConfig): Promise<KyInstance> {
export async function createSealClientForToken(corp: CorpConfig, token: string): Promise<KyInstance> {
const session = await getSealSessionForCorp(corp);
return createSealClientForUrl(session.enterprise.sealUrl, token);
}
export function createSealClientForUrl(sealUrl: string, token: string): KyInstance {
return ky.create({
prefix: session.enterprise.sealUrl,
prefix: sealUrl.replace(/\/+$/, ""),
timeout: 30000,
headers: {
Authorization: `Bearer ${token}`