Do not send id_token_hint by default

This commit is contained in:
wpetit 2020-06-19 10:00:35 +02:00
parent 9ff00c3f59
commit 4bbf7b0160
1 changed files with 0 additions and 8 deletions

View File

@ -46,14 +46,6 @@ func (c *Client) Login(w http.ResponseWriter, r *http.Request) {
authCodeOptions := []oauth2.AuthCodeOption{}
rawIDToken, _ := RawIDToken(w, r)
if rawIDToken != "" {
authCodeOptions = append(
authCodeOptions,
oauth2.SetAuthURLParam("id_token_hint", rawIDToken),
)
}
authCodeURL := c.oauth2.AuthCodeURL(
state,
authCodeOptions...,