Skip to content

Commit

Permalink
Merge pull request #50 from jsienniak/sttp-oauth2-49
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz authored Mar 10, 2021
2 parents 034853b + b502d0e commit bc83919
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ object Introspection {

object TokenIntrospectionResponse {

private implicit val instantDecoder: Decoder[Instant] = Decoder.decodeLong.map(Instant.ofEpochSecond)

implicit val decoder: Decoder[TokenIntrospectionResponse] =
Decoder.forProduct7(
"client_id",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class IntrospectionSerializationSpec extends AnyWordSpec with Matchers with Opti
val json = json"""{
"client_id": $clientId,
"domain": $domain,
"exp": ${exp.toString},
"exp": ${exp.getEpochSecond},
"active": $active,
"authorities": $authorities,
"scope": $scope,
Expand Down

0 comments on commit bc83919

Please sign in to comment.