Skip to content

Commit

Permalink
Fix a little
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinj committed Sep 28, 2024
1 parent dbd71f8 commit 57d21cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ decoded_token = JWT.decode(token, key.key_metadata.key_id, true, algorithm: algo
You can swap the default algorithms in the JWT gem to AWS backed ones by calling `::JWT::Aws::KMS.replace_defaults!`.

```ruby
::JWT::Aws::KMS.replace_defaults! # Called in a initializer of some kind
::JWT::Aws::KMS.replace_defaults! # Called in a initializer of some kind

token = JWT.encode(payload, "e25c502b-a383-44ac-a778-0d97e8688cb7", "HS512") # Encode payload with KMS key e25c502b-a383-44ac-a778-0d97e8688cb7
token = JWT.encode(payload, "e25c502b-a383-44ac-a778-0d97e8688cb7", "HS512") # Encode payload with KMS key e25c502b-a383-44ac-a778-0d97e8688cb7
```

## Development
Expand Down

0 comments on commit 57d21cb

Please sign in to comment.