Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilJay authored Jan 28, 2020
1 parent f3bc4de commit d4e4ba7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ If you want to decode a JWT String, create a JSON decoder:
Use the json decoder to decode your token String:
```kotlin
val tokenString = "ey..." // a valid JWT as a String
val token: JWTToken<JWTAuthHeader, JWTAuthPayload>? = JWT.decode(tokenString, jsonDecoder, decoder)
val t: JWTToken<JWTAuthHeader, JWTAuthPayload>? = JWT.decode(tokenString, jsonDecoder, decoder)

// conveniently access properties of the token...
val issuer = t?.payload?.iss
```

## Verifying
Expand Down

0 comments on commit d4e4ba7

Please sign in to comment.