Skip to content

Commit 40901fe

Browse files
committed
Jwt.Builder#notBefore Value Is Instant
Fixes gh-7442
1 parent 1176d0c commit 40901fe

File tree

1 file changed

+1
-1
lines changed
  • oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt

1 file changed

+1
-1
lines changed

oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/Jwt.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public Builder issuer(String issuer) {
234234
* @return the {@link Builder} for further configurations
235235
*/
236236
public Builder notBefore(Instant notBefore) {
237-
this.claim(NBF, notBefore.getEpochSecond());
237+
this.claim(NBF, notBefore);
238238
return this;
239239
}
240240

0 commit comments

Comments
 (0)