From 76b36cf19ab7010b8eeb93c7acc4cbac03205a22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20M=C3=B6hlmann?= Date: Fri, 13 Oct 2023 15:14:19 +0300 Subject: [PATCH] oops --- pkg/op/token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/op/token.go b/pkg/op/token.go index 6321ec9..63a01a6 100644 --- a/pkg/op/token.go +++ b/pkg/op/token.go @@ -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() } }