EncodeSegment encodes a JWT specific base64url encoding with padding stripped. In the future, this function might take into account a [TokenOption]. Therefore, this function exists as a method of [Token], rather than a global function.
(seg []byte)
| 98 | // [TokenOption]. Therefore, this function exists as a method of [Token], rather |
| 99 | // than a global function. |
| 100 | func (*Token) EncodeSegment(seg []byte) string { |
| 101 | return base64.RawURLEncoding.EncodeToString(seg) |
| 102 | } |
no outgoing calls