hunt-jwt/source/hunt/jwt/Component.d

17 lines
242 B
D
Raw Normal View History

2020-11-23 10:00:11 +00:00
module hunt.jwt.Component;
import hunt.jwt.Base64Codec;
/**
*
*/
class Component {
abstract @property string json();
@property string base64() {
string data = this.json();
return urlsafeB64Encode(data);
}
}