koi.general-functions.user.create-token

create-token

(create-token user)
Create a signed json web token. The token contents are; username, email, id,
permissions and token expiration time. Tokens are valid for 15 minutes.