The MojoAuth APIs Client Library for working with MojoAuth services.
$ dotnet add package MojoAuth.NETRun the following command in the NuGet Package Manager Console:
readme
PM> Install-Package MojoAuth.NET
Take a peek:
Before making any API calls, the MojoAuth API client must be initialized with your MojoAuth API Key and Secret.
Sample code:
using MojoAuth.NET;
var mojoAuthHttpClient = new MojoAuthHttpClient("____key____", "____secret____");
var resp = await mojoAuthHttpClient.SendMagicLink("email.address@example.com");
Console.WriteLine(resp.Result.StateId);
or alternatively,
using MojoAuth.NET;
var mojoAuthHttpClient = new MojoAuthHttpClient(new MojoAuthHttpClientOptions()
{
Key = "your mojoauth api key",
Secret = "your mojoauth api secret",
BaseUrl = "https://your_tenant.mojoauth.com/api" // Optional, Only applicable for single tenant private cloud
});
var resp = await mojoAuthHttpClient.SendMagicLink("email.address@example.com");
Console.WriteLine(resp.Result.StateId);
We appreciate all kinds of contributions from anyone.
Please check the contributing guide to become a contributor.
For more information on licensing, please refer to License