CodeLiturgy.Dashboard/BlueWest.Api/Users/Auth/AuthConsts.cs

17 lines
582 B
C#
Raw Normal View History

2022-09-19 05:50:15 +03:00
using System.Security.Claims;
using System.Threading.Tasks;
using BlueWest.Data.Application;
namespace BlueWest.WebApi.Context.Users;
public static class AuthConsts
{
/// <summary>
/// Helper object to return a negative callback
/// </summary>
public static (bool, SessionTokenUnique, ClaimsIdentity) NegativeToken => (false, null, null);
public static (bool, SessionTokenUnique, ClaimsIdentity) OkAuth(SessionTokenUnique sessionTokenUnique, ClaimsIdentity claimsIdentity, bool success = true) => (success, sessionTokenUnique, claimsIdentity);
}