From 047b36bc2fa2a27fedc485a8f459541b83639a8d Mon Sep 17 00:00:00 2001 From: sedflix Date: Sat, 3 Oct 2020 13:59:30 +0530 Subject: [PATCH] force approval oauth url --- src/oauth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oauth.go b/src/oauth.go index 3e32f27..75eb8af 100644 --- a/src/oauth.go +++ b/src/oauth.go @@ -130,7 +130,7 @@ func authoriseUserHandler(ctx *gin.Context) { } // redirect the user to consent page - authorisationURL := config.AuthCodeURL(oauthState, oauth2.AccessTypeOffline) + authorisationURL := config.AuthCodeURL(oauthState, oauth2.AccessTypeOffline, oauth2.ApprovalForce) ctx.Redirect(http.StatusTemporaryRedirect, authorisationURL) return }