Soenneker.Blazor.Turnstile 4.0.2631

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Blazor.Turnstile --version 4.0.2631
                    
NuGet\Install-Package Soenneker.Blazor.Turnstile -Version 4.0.2631
                    
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="Soenneker.Blazor.Turnstile" Version="4.0.2631" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Blazor.Turnstile" Version="4.0.2631" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Blazor.Turnstile" />
                    
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 Soenneker.Blazor.Turnstile --version 4.0.2631
                    
#r "nuget: Soenneker.Blazor.Turnstile, 4.0.2631"
                    
#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 Soenneker.Blazor.Turnstile@4.0.2631
                    
#: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=Soenneker.Blazor.Turnstile&version=4.0.2631
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Turnstile&version=4.0.2631
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Blazor.Turnstile

A Blazor interop library for Cloudflare Turnstile

This library simplifies the integration of Cloudflare Turnstile into Blazor applications, providing access to options, methods, and events. A demo project showcasing common usages is included.

Please refer to the Cloudflare documentation for further details.

Installation

dotnet add package Soenneker.Blazor.Turnstile

1. Add the following to your Startup.cs file

public void ConfigureServices(IServiceCollection services)
{
    services.AddTurnstileInteropAsScoped();
}

Usage

@using Soenneker.Blazor.Turnstile

<Turnstile @ref="_turnstile" OnCallback="OnCallback" Options="_options" ></Turnstile>

@code{
    private readonly TurnstileOptions _options = new()
    {
        SiteKey = "1x00000000000000000000AA" // Testing key
    };

    private void OnCallback(string token)
    {
        // Send this token to your server for validation
        Logger.LogInformation("OnCallback fired, token: {token}", token);
    }
}

?? While 95%+ of the Cloudflare Turnstile JS has been implemented, there are a few features not yet supported. If you need assistance or want to request a new feature, please open an issue or submit a pull request.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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
4.0.2634 152 5/13/2026
4.0.2633 97 5/13/2026
4.0.2632 96 5/13/2026
4.0.2631 100 5/13/2026
4.0.2630 99 5/12/2026
4.0.2629 98 5/12/2026
4.0.2628 294 5/6/2026
4.0.2627 199 5/3/2026
4.0.2626 104 5/2/2026
4.0.2625 99 5/2/2026
4.0.2624 98 5/1/2026
4.0.2623 100 5/1/2026
4.0.2622 200 4/24/2026
4.0.2621 110 4/24/2026
4.0.2619 106 4/24/2026
4.0.2618 101 4/23/2026
4.0.2617 113 4/23/2026
4.0.2616 116 4/23/2026
4.0.2613 130 4/21/2026
4.0.2612 104 4/21/2026
Loading failed

Update dependency Soenneker.Lepton.Suite to 4.0.11 (#3299)