Add scopes to credentials method response

This commit is contained in:
Alex Lushpai 2021-10-26 13:39:25 +03:00 committed by GitHub
commit a6cbd20518
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,9 @@ type VersionResponse struct {
// CredentialResponse return available API methods. // CredentialResponse return available API methods.
type CredentialResponse struct { type CredentialResponse struct {
Success bool `json:"success,omitempty"` Success bool `json:"success,omitempty"`
// deprecated
Credentials []string `json:"credentials,omitempty"` Credentials []string `json:"credentials,omitempty"`
Scopes []string `json:"scopes,omitempty"`
SiteAccess string `json:"siteAccess,omitempty"` SiteAccess string `json:"siteAccess,omitempty"`
SitesAvailable []string `json:"sitesAvailable,omitempty"` SitesAvailable []string `json:"sitesAvailable,omitempty"`
} }