//
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
//
using Astral.Core.Constants;
namespace Astral.Services.Dtos;
///
/// Session information.
///
public class SessionDto
{
///
/// User id.
///
public Guid UserId { get; set; }
///
/// User name.
///
public string UserName { get; set; }
///
/// Access token.
///
public string AccessToken { get; set; }
///
/// Refresh token.
///
public string RefreshToken { get; set; }
///
/// Created at.
///
public DateTime CreatedAt { get; set; }
///
/// Access token expiry (UTC).
///
public DateTime AccessTokenExpires { get; set; }
///
/// Refresh token expiry (UTC).
///
public DateTime RefreshTokenExpires { get; set; }
///
/// The session token scope.
///
public TokenScope Scope { get; set; }
///
/// The session user role.
///
public UserRole Role { get; set; }
}