Skip to content

Commit

Permalink
Fix issue in decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilJay committed Jan 27, 2020
1 parent b424156 commit 50ab1f1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ allprojects {
}
dependencies {
implementation 'com.github.PhilJay:JWT:1.1.3'
implementation 'com.github.PhilJay:JWT:1.1.4'
}
```

Expand All @@ -33,7 +33,7 @@ Or add the following to your **pom.xml**:
<dependency>
<groupId>com.github.PhilJay</groupId>
<artifactId>JWT</artifactId>
<version>1.1.3</version>
<version>1.1.4</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'com.philjay.jwt'
version '1.1.3'
version '1.1.4'

sourceCompatibility = 1.8

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/philjay/apnjwt/JWT.kt
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ object JWT {
if (parts.size == 3) {
val header = parts[0].toByteArray(charset)
val payload = parts[1].toByteArray(charset)
val tokenSignature = parts[2].toByteArray(charset)
val tokenSignature = decoder.decode(parts[2])

val rsaSignature = Signature.getInstance(algorithm)
rsaSignature.initVerify(rsa)
Expand Down

0 comments on commit 50ab1f1

Please sign in to comment.