Skip to content

Commit

Permalink
51: Authentication token generation failure
Browse files Browse the repository at this point in the history
Reviewed-by: ehelin
  • Loading branch information
rwestberg committed Aug 28, 2019
1 parent b9277c9 commit 03ea4f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private PrivateKey loadPkcs8PemFromFile(String keyFile) {

private String generateJsonWebToken() {
var issuedAt = ZonedDateTime.now(ZoneOffset.UTC);
var expires = issuedAt.plus(Duration.ofMinutes(10));
var expires = issuedAt.plus(Duration.ofMinutes(8));

var header = Base64.getUrlEncoder().encode(JSON.object()
.put("alg", "RS256")
Expand Down

0 comments on commit 03ea4f9

Please sign in to comment.