Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

931 B
Raw Blame
//-----------------------------------------------------------------------
// <copyright file="TokenModel.cs" company="aliasvault">
// Copyright (c) aliasvault. All rights reserved.
// Licensed under the AGPLv3 license. See LICENSE.md file in the project root for full license information.
// </copyright>
//-----------------------------------------------------------------------

namespace AliasVault.Shared.Models.WebApi.V2.Auth;

using System.Text.Json.Serialization;

/// <summary>
/// Access token and refresh token pair handed out by the v2 auth endpoints.
/// </summary>
public class TokenModel
{
    /// <summary>
    /// Gets or sets the access token.
    /// </summary>
    [JsonPropertyName("token")]
    public string Token { get; set; } = null!;

    /// <summary>
    /// Gets or sets the refresh token.
    /// </summary>
    [JsonPropertyName("refreshToken")]
    public string RefreshToken { get; set; } = null!;
}