Session({ required this.token, required this.created, this.refreshToken, }) : userId = JwtDecoder.decode(token)['uid'];