diff --git a/spec/support/handlers_spec.cr b/spec/support/handlers_spec.cr index 77edc98..07a4fdc 100644 --- a/spec/support/handlers_spec.cr +++ b/spec/support/handlers_spec.cr @@ -95,7 +95,7 @@ module Authly describe "RevokeHandler" do it "returns success message for valid token revocation" do - access_token = Authly::AccessToken.new( "1", "read").access_token + access_token = Authly::AccessToken.new("1", "read").access_token response = HTTP::Client.post("#{BASE_URI}/revoke", form: {"token" => access_token}) response.status_code.should eq 200 response.body.should eq "Token revoked successfully" diff --git a/src/authly/code.cr b/src/authly/code.cr index f8aac85..71d8fda 100644 --- a/src/authly/code.cr +++ b/src/authly/code.cr @@ -24,7 +24,7 @@ module Authly def jwt Authly.jwt_encode({ - "jti" => Random::Secure.hex(32), + "jti" => Random::Secure.hex(32), "code" => code, "challenge" => challenge, "method" => method,