Skip to content

Commit

Permalink
Fix verification
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilJay committed Jan 27, 2020
1 parent b29f8ba commit b424156
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 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.2'
implementation 'com.github.PhilJay:JWT:1.1.3'
}
```

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.2</version>
<version>1.1.3</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.2'
version '1.1.3'

sourceCompatibility = 1.8

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/philjay/apnjwt/JWT.kt
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ object JWT {
val parts = jwt.split(tokenDelimiter)

if (parts.size == 3) {
val header = decoder.decode(parts[0].toByteArray(charset))
val payload = decoder.decode(parts[1].toByteArray(charset))
val tokenSignature = decoder.decode(parts[2].toByteArray(charset))
val header = parts[0].toByteArray(charset)
val payload = parts[1].toByteArray(charset)
val tokenSignature = parts[2].toByteArray(charset)

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

0 comments on commit b424156

Please sign in to comment.