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

17 lines
585 B
C#
Raw Normal View History

2022-09-26 04:40:18 +03:00
using System.Security.Claims;
using System.Threading.Tasks;
using BlueWest.Data.Application;
2022-09-27 20:12:13 +03:00
namespace BlueWest.Data.Auth.Context.Users;
2022-09-26 04:40:18 +03:00
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);
}