/// <summary>
 /// 检查登录状态
 /// </summary>
 /// <param name="accessToken">用户的 access token</param>
 /// <param name="cancellationToken"></param>
 /// <returns></returns>
 public async Task<JWTTokenStatus> CheckLoginStatus(
     string accessToken = null,
     CancellationToken cancellationToken = default)
 {
     var param = new CheckLoginStatusParam();
     var res = await Request<CheckLoginStatusResponse>(param.CreateRequest(), cancellationToken, accessToken);
     return res.Result;
 }
Пример #2
0
            /// <summary>
            /// 检查登录状态
            /// </summary>
            /// <param name="token"></param>
            /// <param name="cancellationToken"></param>
            /// <returns></returns>
            public async Task <JWTTokenStatus> CheckLoginStatus(
                string token,
                CancellationToken cancellationToken = default)
            {
                var param = new CheckLoginStatusParam()
                {
                    Token = token
                };
                var res = await client.Request <CheckLoginStatusResponse>(param.CreateRequest(), cancellationToken);

                return(res.Result);
            }