feat: 保存并显示OAuth账号邮箱地址
This commit is contained in:
@@ -17,6 +17,7 @@ export interface OAuthState {
|
||||
export interface TokenInfo {
|
||||
org_uuid?: string
|
||||
account_uuid?: string
|
||||
email_address?: string
|
||||
[key: string]: unknown
|
||||
}
|
||||
|
||||
@@ -160,6 +161,9 @@ export function useAccountOAuth() {
|
||||
if (tokenInfo.account_uuid) {
|
||||
extra.account_uuid = tokenInfo.account_uuid
|
||||
}
|
||||
if (tokenInfo.email_address) {
|
||||
extra.email_address = tokenInfo.email_address
|
||||
}
|
||||
return Object.keys(extra).length > 0 ? extra : undefined
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user