Issue
I'm developing a Vehicle Tracker WebAPI for a Xamarin App.
The WebAPI is developed in .Net 6 and will be consumed from a Xamarin Mobile Application.
I'm confused about few points that I've never done it before and decided to double check before I start.
Here is the link to the Xamarin App UI.
The points I'm confused about are :
How to achieve Remember me feature from the ASP.Net Core 6 Web API to work with Xamarin App ?
How to achieve the Forgot password feature from the Web API to work with Xamarin App ?
Any clue please ?
Code
[HttpDelete("{id}")]
[ServiceFilter(typeof(ValidateEmployeeForCompanyExistsAttribute))]
public async Task<IActionResult> DeleteEmployeeForCompany(Guid companyId, Guid id)
{
var employeeForCompany = HttpContext.Items["employee"] as Employee;
_repository.Employee.DeleteEmployee(employeeForCompany);
await _repository.SaveAsync();
return NoContent();
}
Solution
If you want to store the User information you can use Xamarin Essential secure-storage or use the Key Storage to store and use the user information.
You can use the same sign in / sign up API process to Forgot password and update the information using Web API
Refer here
Answered By - DelliganeshS-MT
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.