Skip to content

Commit

Permalink
Update sensetime.py
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickStar-SJ committed Jan 29, 2024
1 parent f0c7bfc commit 31825e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def encode_jwt_token(ak, sk):
}
payload = {
"iss": ak,
"exp": int(time.time()) + 1800, # 填写您期望的有效时间,此处示例代表当前时间+300分钟
"exp": int(time.time()) + 1800, # 填写您期望的有效时间,此处示例代表当前时间+30分钟
"nbf": int(time.time()) - 5 # 填写您期望的生效时间,此处示例代表当前时间-5秒
}
token = jwt.encode(payload, sk, headers=headers)
Expand Down

0 comments on commit 31825e7

Please sign in to comment.