Skip to content

Commit

Permalink
force approval oauth url
Browse files Browse the repository at this point in the history
  • Loading branch information
sedflix committed Oct 3, 2020
1 parent d2a84e1 commit 047b36b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 047b36b

Please sign in to comment.