Improve GetOAuthToken() API's parameter handling

This commit is contained in:
Yang Luo
2023-11-13 02:30:32 +08:00
parent a22e05dcc1
commit d3ed6c348b
2 changed files with 45 additions and 20 deletions

View File

@ -15,10 +15,10 @@
package controllers
type TokenRequest struct {
GrantType string `json:"grant_type"`
Code string `json:"code"`
ClientId string `json:"client_id"`
ClientSecret string `json:"client_secret"`
GrantType string `json:"grant_type"`
Code string `json:"code"`
Verifier string `json:"code_verifier"`
Scope string `json:"scope"`
Username string `json:"username"`