fix: ensure enterprise url is set properly during auth flow (#19212)
This commit is contained in:
@@ -215,12 +215,13 @@ export namespace ProviderAuth {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ("refresh" in result) {
|
if ("refresh" in result) {
|
||||||
|
const { type: _, provider: __, refresh, access, expires, ...extra } = result
|
||||||
yield* auth.set(input.providerID, {
|
yield* auth.set(input.providerID, {
|
||||||
type: "oauth",
|
type: "oauth",
|
||||||
access: result.access,
|
access,
|
||||||
refresh: result.refresh,
|
refresh,
|
||||||
expires: result.expires,
|
expires,
|
||||||
...(result.accountId ? { accountId: result.accountId } : {}),
|
...extra,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -129,6 +129,7 @@ export type AuthOuathResult = { url: string; instructions: string } & (
|
|||||||
access: string
|
access: string
|
||||||
expires: number
|
expires: number
|
||||||
accountId?: string
|
accountId?: string
|
||||||
|
enterpriseUrl?: string
|
||||||
}
|
}
|
||||||
| { key: string }
|
| { key: string }
|
||||||
))
|
))
|
||||||
@@ -149,6 +150,7 @@ export type AuthOuathResult = { url: string; instructions: string } & (
|
|||||||
access: string
|
access: string
|
||||||
expires: number
|
expires: number
|
||||||
accountId?: string
|
accountId?: string
|
||||||
|
enterpriseUrl?: string
|
||||||
}
|
}
|
||||||
| { key: string }
|
| { key: string }
|
||||||
))
|
))
|
||||||
|
|||||||
Reference in New Issue
Block a user