jwt auth utility
design:
- only contains
sub
,exp
,uid
in jwt claimssub
is the subject of the token, which is the user idexp
is the expiration time of the token, which is a UNIX timestamp in the future, in seconds, as integeruid
is the user id, which is deprecated, usesub
instead
- signing default using HS256