diff --git a/lib/src/pkce.dart b/lib/src/pkce.dart index 3a347f9c..713bda83 100644 --- a/lib/src/pkce.dart +++ b/lib/src/pkce.dart @@ -29,10 +29,8 @@ class Pkce { state, uri: uri)); } else if (codeChallenge?.isNotEmpty != true) { - throw AuthorizationException(ErrorResponse( - ErrorResponse.invalidRequest, - 'Missing `code_challenge` parameter.', - state, + throw AuthorizationException(ErrorResponse(ErrorResponse.invalidRequest, + 'Missing `code_challenge` parameter.', state, uri: uri)); }