Skip to content

Commit

Permalink
Merge pull request #20 from vapor-community/google-jwt-warning
Browse files Browse the repository at this point in the history
Fix warning with unmutated variable
  • Loading branch information
0xTim authored Nov 18, 2018
2 parents 54c47c2 + 35f05fd commit c1b6b21
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
56 changes: 28 additions & 28 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,62 +6,62 @@
"repositoryURL": "https://github.com/vapor/console.git",
"state": {
"branch": null,
"revision": "5b9796d39f201b3dd06800437abd9d774a455e57",
"version": "3.0.2"
"revision": "d6cf07af59ae63cd95c4b5f98cf1f25627750fd1",
"version": "3.1.0"
}
},
{
"package": "Core",
"repositoryURL": "https://github.com/vapor/core.git",
"state": {
"branch": null,
"revision": "7f56a09995bf3c8df562be456bdcda405d9d0678",
"version": "3.4.1"
"revision": "96ce86ebf9198328795c4b9cb711489460be083c",
"version": "3.4.4"
}
},
{
"package": "Crypto",
"repositoryURL": "https://github.com/vapor/crypto.git",
"state": {
"branch": null,
"revision": "4b85405430df1892ee3aa1554bdb477e96cf46ad",
"version": "3.2.0"
"revision": "5605334590affd4785a5839806b4504407e054ac",
"version": "3.3.0"
}
},
{
"package": "DatabaseKit",
"repositoryURL": "https://github.com/vapor/database-kit.git",
"state": {
"branch": null,
"revision": "acdd4d3384ec0122dcfcca8d23d9054a2860ffba",
"version": "1.2.0"
"revision": "3a17dbbe9be5f8c37703e4b7982c1332ad6b00c4",
"version": "1.3.1"
}
},
{
"package": "HTTP",
"repositoryURL": "https://github.com/vapor/http.git",
"state": {
"branch": null,
"revision": "8123ea00e9858b369cd168d0303d33e7d3804d19",
"version": "3.0.7"
"revision": "6973bf50dab8dd00e4daf8cb82ca72b33f5db016",
"version": "3.1.6"
}
},
{
"package": "JWT",
"repositoryURL": "https://github.com/vapor/jwt.git",
"state": {
"branch": null,
"revision": "de0dc5bbba60250c24c5c4b4d2505d7a71dd03ae",
"version": "3.0.0-rc.2.1.2"
"revision": "2e225c722bf26407c1c4bd11d341e48759f46095",
"version": "3.0.0"
}
},
{
"package": "Multipart",
"repositoryURL": "https://github.com/vapor/multipart.git",
"state": {
"branch": null,
"revision": "7778dcb62f3efa845e8e2808937bb347575ba7ce",
"version": "3.0.1"
"revision": "e57007c23a52b68e44ebdfc70cbe882a7c4f1ec3",
"version": "3.0.2"
}
},
{
Expand All @@ -87,17 +87,17 @@
"repositoryURL": "https://github.com/apple/swift-nio.git",
"state": {
"branch": null,
"revision": "695afc5205aaa49fca092b94b479ff71c43d9d3c",
"version": "1.8.0"
"revision": "035962e6b6e03c8721a91a9b96dc084289795cb4",
"version": "1.11.0"
}
},
{
"package": "swift-nio-ssl",
"repositoryURL": "https://github.com/apple/swift-nio-ssl.git",
"state": {
"branch": null,
"revision": "0adc938bc8de3d3829b842f9767d81c7480b8403",
"version": "1.1.1"
"revision": "db16c3a90b101bb53b26a58867a344ad428072e0",
"version": "1.3.2"
}
},
{
Expand All @@ -123,44 +123,44 @@
"repositoryURL": "https://github.com/vapor/template-kit.git",
"state": {
"branch": null,
"revision": "43b57b5861d5181b906ac6411d28645e980bb638",
"version": "1.0.1"
"revision": "aff2d6fc65bfd04579b0201b31a8d6720239c1cf",
"version": "1.1.1"
}
},
{
"package": "URLEncodedForm",
"repositoryURL": "https://github.com/vapor/url-encoded-form.git",
"state": {
"branch": null,
"revision": "57cf7fb9c1a1014c50bc05123684a9139ad44127",
"version": "1.0.3"
"revision": "932024f363ee5ff59059cf7d67194a1c271d3d0c",
"version": "1.0.5"
}
},
{
"package": "Validation",
"repositoryURL": "https://github.com/vapor/validation.git",
"state": {
"branch": null,
"revision": "ab6c5a352d97c8687b91ed4963aef8e7cfe0795b",
"version": "2.0.0"
"revision": "4de213cf319b694e4ce19e5339592601d4dd3ff6",
"version": "2.1.1"
}
},
{
"package": "Vapor",
"repositoryURL": "https://github.com/vapor/vapor.git",
"state": {
"branch": null,
"revision": "74a46ecacca51d326a1e8cf4b7967827765f05bf",
"version": "3.0.5"
"revision": "157d3b15336caa882662cc75024dd04b2e225246",
"version": "3.1.0"
}
},
{
"package": "WebSocket",
"repositoryURL": "https://github.com/vapor/websocket.git",
"state": {
"branch": null,
"revision": "141cb4d3814dc8062cb0b2f43e72801b5dfcf272",
"version": "1.0.1"
"revision": "eb4277f75f1d96a3d15c852cdd89af1799093dcd",
"version": "1.1.0"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion Sources/Imperial/Services/GoogleJWT/GoogleJWTRouter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public final class GoogleJWTRouter: FederatedServiceRouter {

let pk = try RSAKey.private(pem: self.tokens.clientSecret)
let signer = JWTSigner.rs256(key: pk)
var jwt = JWT<GoogleJWTPayload>(payload: payload)
let jwt = JWT<GoogleJWTPayload>(payload: payload)
let jwtData = try jwt.sign(using: signer)
return String(data: jwtData, encoding: .utf8)!
}
Expand Down

0 comments on commit c1b6b21

Please sign in to comment.