using SharedLibraryCore.Helpers; 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 /// /// network id of the client to authorize /// token to authorize /// true if token authorized successfully, false otherwise bool AuthorizeToken(long networkId, string token); } }