Add Hose assistance link onboarding (#13)
This commit is contained in:
1 parent
9f3975a6a5
commit
4ce206a2ce
13 files changed
+527
-17
No files matched your search
@@ -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}`
|
||||
|
||||
Reference in new issue
Block a user