Y = Base64URLEncode(Header) + ‘.’ + Base64URLEncode(Payload)
JWT = Y + ‘.’ + Base64URLEncode(HMACSHA256(Y))
The steps called out here should work on a Mac as well. The only thing that might be different is the
sedcommand used below. Instead of using-E, you will have to use-rto runsedwith extended regular expression support