Skip to content

Instantly share code, notes, and snippets.

@nishanc
Last active May 5, 2019 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nishanc/b8c1136882f4d00dab8c24d8a1f4992a to your computer and use it in GitHub Desktop.
Save nishanc/b8c1136882f4d00dab8c24d8a1f4992a to your computer and use it in GitHub Desktop.
using System.Threading.Tasks;
using JWTAuth.API.Models;
namespace JWTAuth.API.Data
{
public interface IAuthRepository
{
Task<User> Register(User user, string password);
Task<User> Login(string username, string pasword);
Task<bool> UserExists(string username);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment