Skip to content

Commit

Permalink
use epoch in Token
Browse files Browse the repository at this point in the history
  • Loading branch information
bhuism committed Nov 28, 2024
1 parent bb0aee1 commit d7bc2f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/nl/ictu/Token.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public final class Token {
private String version = "v1";
private String bsn;
private String recipientOIN;
private LocalDateTime creationDate;
private Long creationDate;

}
2 changes: 1 addition & 1 deletion src/main/java/nl/ictu/controller/v1/GetToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public ResponseEntity<WsGetToken200Response> getToken(final String callerOIN, fi

final Token token = new Token();

token.setCreationDate(LocalDateTime.now());
token.setCreationDate(System.currentTimeMillis());
token.setRecipientOIN(wsGetTokenRequest.getRecipientOIN());

if (wsGetTokenRequest.getIdentifier() != null) {
Expand Down

0 comments on commit d7bc2f7

Please sign in to comment.