2024-05-29 05:33:55 +03:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Mirea.Api.Security.Common.Domain;
|
|
|
|
|
|
2024-10-31 04:12:02 +03:00
|
|
|
|
internal class AuthToken
|
2024-05-29 05:33:55 +03:00
|
|
|
|
{
|
2024-10-31 04:12:02 +03:00
|
|
|
|
public AuthToken(RequestContextInfo context)
|
|
|
|
|
{
|
|
|
|
|
UserAgent = context.UserAgent;
|
|
|
|
|
Ip = context.Ip;
|
|
|
|
|
Fingerprint = context.Fingerprint;
|
|
|
|
|
RefreshToken = context.RefreshToken;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public AuthToken()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string UserAgent { get; set; } = null!;
|
|
|
|
|
public string Ip { get; set; } = null!;
|
|
|
|
|
public string Fingerprint { get; set; } = null!;
|
|
|
|
|
public string RefreshToken { get; set; } = null!;
|
|
|
|
|
|
2024-05-29 05:33:55 +03:00
|
|
|
|
public required string UserId { get; set; }
|
|
|
|
|
public required string AccessToken { get; set; }
|
|
|
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
|
}
|