Fixing json tags.

This commit is contained in:
Burcu Dogan
2014-08-12 23:42:30 -07:00
parent a9dc52b3d3
commit 03e5fbeae0

View File

@@ -73,7 +73,7 @@ type Options struct {
// will result in your application obtaining a refresh token // will result in your application obtaining a refresh token
// the first time your application exchanges an authorization // the first time your application exchanges an authorization
// code for a user. // code for a user.
AccessType string `json:"omit"` AccessType string `json:"access_type,omitempty"`
// ApprovalPrompt indicates whether the user should be // ApprovalPrompt indicates whether the user should be
// re-prompted for consent. If set to "auto" (default) the // re-prompted for consent. If set to "auto" (default) the
@@ -82,7 +82,7 @@ type Options struct {
// access token. // access token.
// If set to "force" the user will always be prompted, and the // If set to "force" the user will always be prompted, and the
// code can be exchanged for a refresh token. // code can be exchanged for a refresh token.
ApprovalPrompt string `json:"omit"` ApprovalPrompt string `json:"-"`
} }
// NewConfig creates a generic OAuth 2.0 configuration that talks // NewConfig creates a generic OAuth 2.0 configuration that talks