Skip to content

Commit

Permalink
style: function invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
chsavvaidis committed Nov 29, 2024
1 parent bc215f6 commit fd181ec
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,13 @@ object OpenID4VC {

else -> throw TokenError(tokenRequest, TokenErrorCode.unsupported_grant_type, "Grant type not supported")
}
return verifyAndParseToken(code, issuer, TokenTarget.TOKEN, tokenKey) ?: throw TokenError(

return verifyAndParseToken(
token = code,
issuer = issuer,
target = TokenTarget.TOKEN,
tokenKey = tokenKey
) ?: throw TokenError(
tokenRequest = tokenRequest,
errorCode = TokenErrorCode.invalid_grant,
message = "Authorization code could not be verified"
Expand Down

0 comments on commit fd181ec

Please sign in to comment.