using SharedLibraryCore.Helpers;
using System;
using System.Collections.Generic;
using System.Text;
namespace SharedLibraryCore.Interfaces
{
public interface ITokenAuthentication
{
///
/// generates and returns a token for the given network id
///
/// network id of the players to generate the token for
/// 4 character string token
TokenState GenerateNextToken(long networkId);
///
/// authorizes given token
///
/// token to authorize
/// true if token authorized successfully, false otherwise
bool AuthorizeToken(long networkId, string token);
}
}