标签: javascript angular authentication angular2-jwt
jwtHelper.isTokenExpired
谁可以帮助我并回答如何构建令牌? 我应该输入偏移时间吗?
!this.jwtHelper.isTokenExpired(token, 50000); {
“子”:“ 1234567890”, “ name”:“ John Doe”, “ iat”:1547532541224, “角色”:“管理员” }