def create_jwt(self):
"""
Creates a signed JWT, valid for 60 seconds.
:return:
"""
now = int(time.time())
payload = {
"iat": now,
"exp": now + 60,
"iss": self.integration_id
}
return jwt.encode(
payload,
key=self.private_key,
algorithm="RS256"
)
评论列表
文章目录