Session constructor
Implementation
Session({
required this.token,
required this.created,
this.refreshToken,
}) {
final decodedToken = JwtDecoder.decode(token);
userId = decodedToken['uid'];
username = decodedToken['usn'];
expiresAt = decodedToken['exp'];
}