mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-25 15:09:26 -07:00
18 lines
408 B
C#
18 lines
408 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using RadicadeServer.DB;
|
|
|
|
namespace RadicadeServer.Auth;
|
|
|
|
public class AuthShared
|
|
{
|
|
public static IDbContextFactory<RecDBContext> DbFactory = null!;
|
|
|
|
public static Task<bool> IsWhitelisted(string platformId)
|
|
{
|
|
|
|
|
|
|
|
if (!SteamWhitelist.Enabled) return Task.FromResult(true);
|
|
return Task.FromResult(SteamWhitelist.Contains(platformId));
|
|
}
|
|
} |