Skip to content

Commit

Permalink
Don't require eddsa if rbnacl is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinj committed Sep 15, 2024
1 parent e5685a0 commit e12d45b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/jwt/jwa.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,18 @@
end

require_relative 'jwa/signing_algorithm'

require_relative 'jwa/ecdsa'
require_relative 'jwa/eddsa'
require_relative 'jwa/hmac'
require_relative 'jwa/none'
require_relative 'jwa/ps'
require_relative 'jwa/rsa'
require_relative 'jwa/unsupported'
require_relative 'jwa/wrapper'

if JWT.rbnacl?
require_relative 'jwa/eddsa'
end

if JWT.rbnacl_6_or_greater?
require_relative 'jwa/hmac_rbnacl'
elsif JWT.rbnacl?
Expand Down

0 comments on commit e12d45b

Please sign in to comment.