Stytch.net
1.0.0
See the version list below for details.
dotnet add package Stytch.net --version 1.0.0
NuGet\Install-Package Stytch.net -Version 1.0.0
<PackageReference Include="Stytch.net" Version="1.0.0" />
<PackageVersion Include="Stytch.net" Version="1.0.0" />
<PackageReference Include="Stytch.net" />
paket add Stytch.net --version 1.0.0
#r "nuget: Stytch.net, 1.0.0"
#:package Stytch.net@1.0.0
#addin nuget:?package=Stytch.net&version=1.0.0
#tool nuget:?package=Stytch.net&version=1.0.0
Stytch dotnet Library
The Stytch .NET library makes it easy to use the Stytch user infrastructure API in .NET applications.
Install
Using .NET CLI:
dotnet add package Stytch.net --version 1.0.0
Usage
You can find your API credentials in the Stytch Dashboard.
This client library supports all of Stytch's live products:
B2C
- Email Magic Links
- Embeddable Magic Links
- OAuth logins
- SMS passcodes
- WhatsApp passcodes
- Email passcodes
- Session Management
- WebAuthn
- User Management
- Time-based one-time passcodes (TOTPs)
- Crypto wallets
- Passwords
B2B
- Organizations
- Members
- RBAC
- Email Magic Links
- OAuth logins
- Session Management
- Single-Sign On
- Discovery
- Passwords
- SMS OTP (MFA)
Example B2C usage
Create an API client:
using Stytch;
var client = new ConsumerClient(new ClientConfig
{
ProjectId = "project-live-c60c0abe-c25a-4472-a9ed-320c6667d317",
Secret = "secret-live-80JASucyk7z_G8Z-7dVwZVGXL5NT_qGAQ2I="
});
Send a magic link by email:
client.OTPs.Email.LoginOrCreate({
Email = "sandbox@stytch.com",
LoginMagicLinkUrl = "https://example.com/authenticate",
SignupMagicLinkUrl = "https://example.com/authenticate"
});
Authenticate the token from the magic link:
client.MagicLinks.Authenticate(new AuthenticateRequest
{
Token = "DOYoip3rvIMMW5lgItikFK-Ak1CfMsgjuiCyI7uuU94="
});
Example B2B usage
Create an API client:
using Stytch;
var client = new B2BClient(new ClientConfig
{
ProjectId = "project-live-c60c0abe-c25a-4472-a9ed-320c6667d317",
Secret = "secret-live-80JASucyk7z_G8Z-7dVwZVGXL5NT_qGAQ2I="
});
Create an organization
client.Organizations.Create({
OrganizationName = "Acme Co",
OrganizationSlug = "acme-co",
EmailAllowedDomains = ["acme.co"],
});
Log the first user into the organization
client.MagicLinks.Email.LoginOrSignup({
OrganizationId = "organization-id-from-create-response-...",
EmailAddress = "admin@acme.co",
}));
Support
If you've found a bug, open an issue!
If you have questions or want help troubleshooting, join us in Slack or email support@stytch.com.
If you've found a security vulnerability, please follow our responsible disclosure instructions.
Development
See DEVELOPMENT.md
Code of Conduct
Everyone interacting in the Stytch project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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 was computed. 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. |
-
net8.0
- Newtonsoft.Json (>= 13.0.3)
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 |
---|---|---|
2.10.0 | 219 | 9/11/2025 |
2.9.0 | 120 | 9/11/2025 |
2.8.0 | 126 | 9/10/2025 |
2.7.0 | 249 | 8/29/2025 |
2.6.0 | 175 | 8/28/2025 |
2.5.0 | 198 | 8/27/2025 |
2.4.0 | 175 | 8/27/2025 |
2.3.0 | 188 | 8/25/2025 |
2.2.1 | 120 | 8/25/2025 |
2.2.0 | 215 | 8/14/2025 |
2.1.0 | 162 | 8/12/2025 |
2.0.1 | 303 | 8/6/2025 |
2.0.0 | 216 | 8/6/2025 |
1.3.0 | 22,697 | 10/29/2024 |
1.2.2 | 121 | 10/25/2024 |
1.2.1 | 162 | 10/24/2024 |
1.2.0 | 108 | 10/24/2024 |
1.1.0 | 131 | 10/14/2024 |
1.0.0 | 155 | 10/4/2024 |