Function jsonwebtoken::crypto::sign
source · [−]Expand description
Take the payload of a JWT, sign it using the algorithm given and return the base64 url safe encoded of the result.
If you just want to encode a JWT, use encode
instead.