XU XUv0.8.8
EN

API

#crypto/jwt

import: #crypto/jwt

counts: 1 函数, 0 方法, 0 类型, 0 常量, 0 方法集

标准库包 `#crypto/jwt`。

sign_es256

XuAPI
pub fn sign_es256(private_key &string, team_id string, key_id string, iat_sec int) string

用途

符号es256。失败时 throw。

参数

private_key &string
private_key(借用,调用方仍持有;类型 &string)
team_id string
team_id(string)
key_id string
key_id(string)
iat_sec int
iat_sec(int)

返回

string — 结果字符串