This commit is contained in:
Tim Möhlmann 2023-10-13 15:14:19 +03:00
parent 8e605a4cc4
commit 76b36cf19a

View file

@ -52,7 +52,7 @@ func CreateTokenResponse(ctx context.Context, request IDTokenRequest, client Cli
return nil, err
}
// only implicit flow requires state to be returned.
if code != "" {
if code == "" {
state = authRequest.GetState()
}
}