mirror of
https://github.com/router-for-me/CLIProxyAPIPlus.git
synced 2026-04-17 20:03:42 +00:00
fix: persist copilot token metadata
This commit is contained in:
@@ -2445,9 +2445,12 @@ func (h *Handler) RequestGitHubToken(c *gin.Context) {
|
||||
FileName: fileName,
|
||||
Storage: tokenStorage,
|
||||
Metadata: map[string]any{
|
||||
"email": userInfo.Email,
|
||||
"username": username,
|
||||
"name": userInfo.Name,
|
||||
"email": userInfo.Email,
|
||||
"username": username,
|
||||
"name": userInfo.Name,
|
||||
"access_token": tokenData.AccessToken,
|
||||
"token_type": tokenData.TokenType,
|
||||
"scope": tokenData.Scope,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user