From 03e5fbeae09722f5ddfba258280c7f6b789618ff Mon Sep 17 00:00:00 2001 From: Burcu Dogan Date: Tue, 12 Aug 2014 23:42:30 -0700 Subject: [PATCH] Fixing json tags. --- oauth2.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oauth2.go b/oauth2.go index a236290..8813e22 100644 --- a/oauth2.go +++ b/oauth2.go @@ -73,7 +73,7 @@ type Options struct { // will result in your application obtaining a refresh token // the first time your application exchanges an authorization // code for a user. - AccessType string `json:"omit"` + AccessType string `json:"access_type,omitempty"` // ApprovalPrompt indicates whether the user should be // re-prompted for consent. If set to "auto" (default) the @@ -82,7 +82,7 @@ type Options struct { // access token. // If set to "force" the user will always be prompted, and the // 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