Skip to content

Commit 60cc88c

Browse files
authored
Merge pull request jwt-scala#49 from nremond/patch-1
Remove multiple keys from a map at once
2 parents 149a978 + 2e7ba28 commit 60cc88c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

json/upickle/src/main/scala/JwtUpickleImplicits.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ trait JwtUpickleImplicits {
2323
implicit val jwtUpickleClaimReader: Reader[JwtClaim] = Reader[JwtClaim] {
2424
case obj: Js.Obj =>
2525
val fieldMap = obj.value.toMap
26-
val content = fieldMap - "iss" - "sub" - "aud" - "exp" - "nbf" - "iat" - "jti"
26+
val content = fieldMap -- Seq("iss", "sub", "aud", "exp", "nbf", "iat", "jti")
2727
JwtClaim(
2828
content = json.write(Js.Obj(content.toSeq: _*)),
2929
issuer = fieldMap.get("iss").map(_.str),

0 commit comments

Comments
 (0)