|
@@ -99,12 +99,16 @@ export namespace ProviderAuth {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
if ("refresh" in result) {
|
|
if ("refresh" in result) {
|
|
|
- await Auth.set(input.providerID, {
|
|
|
|
|
|
|
+ const info: Auth.Info = {
|
|
|
type: "oauth",
|
|
type: "oauth",
|
|
|
access: result.access,
|
|
access: result.access,
|
|
|
refresh: result.refresh,
|
|
refresh: result.refresh,
|
|
|
expires: result.expires,
|
|
expires: result.expires,
|
|
|
- })
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ if (result.accountId) {
|
|
|
|
|
+ info.accountId = result.accountId
|
|
|
|
|
+ }
|
|
|
|
|
+ await Auth.set(input.providerID, info)
|
|
|
}
|
|
}
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|