OnlineSalesAutoCrop/Api/OnlineSalesAutoCrop.CoreAPI.Models/Responses/Integrations/IntegrationAuthResponse.cs

33 lines
1.0 KiB
C#
Raw Permalink Normal View History

2026-06-15 18:26:58 +06:00
using OnlineSalesAutoCrop.CoreAPI.Models.Objects.Systems;
using System;
using System.Collections.Generic;
using System.Text;
namespace OnlineSalesAutoCrop.CoreAPI.Models.Responses.Integrations;
public class IntegrationLoginResponse : ResponseBase
2026-06-15 18:26:58 +06:00
{
public string LoginId { get; set; }
public string AccessToken { get; set; } = string.Empty;
public string RefreshToken { get; set; } = string.Empty;
public EnumLoginStatus LoginStatus { get; set; }
2026-06-15 18:26:58 +06:00
public DateTime AccessTokenExpiry { get; set; }
}
public class RefreshTokenResponse : ResponseBase
2026-06-15 18:26:58 +06:00
{
public string UserId { get; set; }
public string TokenHash { get; set; }
public string IpAddress { get; set; }
public DateTime ExpiredAt { get; set; }
public DateTime? RevokedAt { get; set; }
public string DeviceInfo { get; set; }
public bool IsActive { get; set; }
2026-06-15 18:26:58 +06:00
}
public class GenerateRefreshTokenResponse : ResponseBase
2026-06-15 18:26:58 +06:00
{
public string RefreshToken { get; set; }
public DateTime ExpireTime { get; set; }
}