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