{"id":1432,"date":"2023-03-20T21:59:45","date_gmt":"2023-03-20T13:59:45","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1432"},"modified":"2023-04-28T21:01:26","modified_gmt":"2023-04-28T13:01:26","slug":"jwt-invalidclaimexception-the-token-can-not-be-used-before","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/20\/jwt-invalidclaimexception-the-token-can-not-be-used-before\/","title":{"rendered":"JWT InvalidClaimException &#8211; The Token can&#8217;t be used before"},"content":{"rendered":"<h2>jwt token\u9519\u8bef<\/h2>\n<p>Linux\u670d\u52a1\u5668\u4e0a\u6700\u8fd1\u4f7f\u7528jwt token\u7684\u65f6\u5019\u9047\u5230\u4e86\u4e00\u4e2a\u5947\u602a\u7684\u95ee\u9898\uff1a<\/p>\n<pre><code>InvalidClaimException: The Token can&#039;t be used before \u67d0\u4e2a\u65f6\u95f4<\/code><\/pre>\n<p><!-- more --><\/p>\n<p>\u672c\u5730\u8c03\u8bd5\u5b8c\u5168\u6ca1\u95ee\u9898\uff0c\u6d4b\u8bd5\u73af\u5883\u53ea\u4f7f\u7528\u4e00\u53f0\u4e5f\u6ca1\u95ee\u9898\uff0c\u4f46\u662f\u4e00\u65e6\u542f\u7528\u591a\u53f0\u670d\u52a1\u5668\u5c31\u4f1a\u62a5\u8fd9\u4e2a\u9519\u8bef\u3002<\/p>\n<p>\u7ecf\u5206\u6790\u53d1\u73b0\uff0c\u591a\u53f0\u6b63\u5f0f\u670d\u52a1\u5668\u7684\u7cfb\u7edf\u65f6\u95f4\u662f\u4e0d\u4e00\u6837\u7684\uff0c\u6709\u4e00\u5b9a\u7684\u5dee\u503c\u3002\u751f\u6210token\u7684\u670d\u52a1\u5668\u6bd4\u4f7f\u7528token\u7684\u670d\u52a1\u5668\u65f6\u95f4\u5feb\u51e0\u5341\u79d2\uff0c\u751f\u6210token\u540e\uff0c\u8bf7\u6c42\u5206\u53d1\u5230\u65f6\u95f4\u6162\u7684\u670d\u52a1\u5668\u4e0a\u5bfc\u81f4\u65f6\u95f4\u8fd8\u6ca1\u5230token\u7684\u5f00\u59cb\u65f6\u95f4\uff0c\u624d\u62a5\u8fd9\u4e2a\u9519\u8bef\u3002<\/p>\n<p>\u901a\u4fd7\u7684\u8bb2\uff1a\u5bfc\u81f4\u7684\u539f\u56e0\u662f\u63a5\u6536\u670d\u52a1\u5668\u4f7f\u7528\u4e86\u672a\u6765\u7684<code>jwt token<\/code><\/p>\n<h2>\u89e3\u51b3\u65b9\u6cd5<\/h2>\n<p>\u540c\u6b65\u670d\u52a1\u5668\u65f6\u95f4:<\/p>\n<pre><code>nptdate -u ntp1.aliyun.com  \/\/\u7f51\u7edc\u540c\u6b65\nntpdate -u 192.168.1.20  \/\/\u5c40\u57df\u7f51\u540c\u6b65<\/code><\/pre>\n<p>\u6ce8\u610f123\u7aef\u53e3\u5fc5\u987b\u53ef\u4ee5\u4f7f\u7528<\/p>\n<p>\u6216\u8005\u901a\u8fc7date\u8bbe\u7f6e\u7cfb\u7edf\u65f6\u95f4<\/p>\n","protected":false},"excerpt":{"rendered":"<p>jwt token\u9519\u8bef Linux\u670d\u52a1\u5668\u4e0a\u6700\u8fd1\u4f7f\u7528jwt token\u7684\u65f6\u5019\u9047\u5230\u4e86\u4e00\u4e2a\u5947\u602a\u7684\u95ee\u9898\uff1a Invali [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[192],"class_list":["post-1432","post","type-post","status-publish","format-standard","hentry","category-java-basic","tag-jwt"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1432"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1432\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}