Authyo.AspNetCore.Auth 1.1.0

dotnet add package Authyo.AspNetCore.Auth --version 1.1.0
                    
NuGet\Install-Package Authyo.AspNetCore.Auth -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Authyo.AspNetCore.Auth" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Authyo.AspNetCore.Auth" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Authyo.AspNetCore.Auth" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Authyo.AspNetCore.Auth --version 1.1.0
                    
#r "nuget: Authyo.AspNetCore.Auth, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Authyo.AspNetCore.Auth@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Authyo.AspNetCore.Auth&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Authyo.AspNetCore.Auth&version=1.1.0
                    
Install as a Cake Tool

Authyo.AspNetCore.Authentication

SDK for integrating Authyo passwordless authentication in ASP.NET Core applications.

Features

  • Multi-channel Authentication: Support for Email, SMS, WhatsApp, QR Code, OAuth, and Passkey
  • Easy Integration: Simple configuration and setup
  • Type-safe API: Strongly typed models and responses
  • ASP.NET Core Integration: Built on top of Microsoft.AspNetCore.Authentication

Installation

dotnet add package Authyo.AspNetCore.Auth

Or via Package Manager Console:

Install-Package Authyo.AspNetCore.Auth

Quick Start

1. Configure Authyo in appsettings.json

{
  "Authyo": {
    "BaseUrl": "https://app.authyo.io",
    "ClientId": "YOUR_CLIENT_ID",
    "ClientSecret": "YOUR_CLIENT_SECRET"
  }
}

2. Register Services in Program.cs (or Startup.cs)

using Authyo.AspNetCore.Authentication;

var builder = WebApplication.CreateBuilder(args);

// Add Authyo services
builder.Services.AddAuthyoPasswordless(options =>
{
    options.BaseUrl = builder.Configuration["Authyo:BaseUrl"];
    options.ClientId = builder.Configuration["Authyo:ClientId"];
    options.ClientSecret = builder.Configuration["Authyo:ClientSecret"];
    options.DefaultMethod = AuthyoAuthMethod.Sms;
});

var app = builder.Build();

3. Use the Client

public class AuthController : ControllerBase
{
    private readonly IAuthyoPasswordlessClient _authyoClient;

    public AuthController(IAuthyoPasswordlessClient authyoClient)
    {
        _authyoClient = authyoClient;
    }

    [HttpPost("send-otp")]
    public async Task<IActionResult> SendOtp(string identity)
    {
        var result = await _authyoClient.SendOtpAsync(identity, AuthyoAuthMethod.Sms);
        return Ok(result);
    }

    [HttpGet("verify-otp")]
    public async Task<IActionResult> VerifyOtp(string otp, string maskId)
    {
        var result = await _authyoClient.VerifyOtpAsync(otp, maskId);
        return Ok(result);
    }
}

API Methods

  • GetConfigurationAsync() - Get application customization configuration
  • SendOtpAsync(identity, method, deviceInfo) - Send OTP to user
  • VerifyOtpAsync(otp, maskId) - Verify OTP code
  • VerifyTokenAsync(token) - Verify authentication token
  • RevokeSessionAsync(token) - Revoke user session

Documentation

For more information, visit https://authyo.io/docs

License

MIT License - see LICENSE file for details

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 515 12/1/2025
1.0.0 136 11/29/2025