Map parseToken(String? token) { final parts = token?.split(r'.'); return jsonDecode( utf8.decode(base64Url.decode(base64Url.normalize(parts![1])))); }