From 615725ac3e8be5f80b120af3b5d1a024dec5de3a Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Tue, 5 Sep 2023 14:36:07 +0200 Subject: [PATCH] fix: correct id token type in token exchange response Closes https://github.com/ory/client-go/issues/2 --- oauth2/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth2/handler.go b/oauth2/handler.go index dd4e7f52f3b..5662be5cc8e 100644 --- a/oauth2/handler.go +++ b/oauth2/handler.go @@ -909,7 +909,7 @@ type oAuth2TokenExchange struct { Scope string `json:"scope"` // To retrieve a refresh token request the id_token scope. - IDToken int `json:"id_token"` + IDToken string `json:"id_token"` // The access token issued by the authorization server. AccessToken string `json:"access_token"`