hunt-jwt/source/hunt/jwt/Component.d
2020-11-23 18:00:11 +08:00

17 lines
242 B
D

module hunt.jwt.Component;
import hunt.jwt.Base64Codec;
/**
*
*/
class Component {
abstract @property string json();
@property string base64() {
string data = this.json();
return urlsafeB64Encode(data);
}
}