IOTPService.cs 466 B

1234567891011121314151617
  1. using Microsoft.AspNetCore.Identity;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace MTWorkHR.Application.Services.Interfaces
  8. {
  9. public interface IOTPService
  10. {
  11. Task<string> RandomOneTimePassword(string userId);
  12. Task<bool> VerifyOTP(string userId, string oneTimePassword);
  13. Task SentOTPByMail(string userId, string email, string oneTimePassword);
  14. }
  15. }