{"id":21096781,"url":"https://github.com/stytchauth/stytch-dotnet","last_synced_at":"2026-04-20T17:05:43.233Z","repository":{"id":257826401,"uuid":"855319866","full_name":"stytchauth/stytch-dotnet","owner":"stytchauth","description":"Official Dotnet SDK for the Stytch API","archived":false,"fork":false,"pushed_at":"2026-02-23T21:03:36.000Z","size":795,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-02-24T03:52:45.535Z","etag":null,"topics":["authentication","dotnet","oauth2","stytch"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stytchauth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-10T17:14:59.000Z","updated_at":"2026-01-21T22:54:54.000Z","dependencies_parsed_at":"2024-10-25T23:08:25.584Z","dependency_job_id":"d82a3b6f-6de3-49c7-b9f8-3585d299bb93","html_url":"https://github.com/stytchauth/stytch-dotnet","commit_stats":null,"previous_names":["stytchauth/stytch-dotnet"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/stytchauth/stytch-dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stytchauth%2Fstytch-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stytchauth%2Fstytch-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stytchauth%2Fstytch-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stytchauth%2Fstytch-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stytchauth","download_url":"https://codeload.github.com/stytchauth/stytch-dotnet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stytchauth%2Fstytch-dotnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32054611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","dotnet","oauth2","stytch"],"created_at":"2024-11-19T22:43:48.466Z","updated_at":"2026-04-20T17:05:43.215Z","avatar_url":"https://github.com/stytchauth.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stytch dotnet Library\n\nThe Stytch .NET library makes it easy to use the Stytch user infrastructure API in .NET applications.\n\n## Install\n\n### Using .NET CLI:\n```\ndotnet add package Stytch.net\n```\n\n## Usage\n\nYou can find your API credentials in the [Stytch Dashboard](https://stytch.com/dashboard/api-keys).\n\nThis client library supports all of Stytch's live products:\n\n**B2C**\n\n- [x] [Email Magic Links](https://stytch.com/docs/api/send-by-email)\n- [x] [Embeddable Magic Links](https://stytch.com/docs/api/create-magic-link)\n- [x] [OAuth logins](https://stytch.com/docs/api/oauth-google-start)\n- [x] [SMS passcodes](https://stytch.com/docs/api/send-otp-by-sms)\n- [x] [WhatsApp passcodes](https://stytch.com/docs/api/whatsapp-send)\n- [x] [Email passcodes](https://stytch.com/docs/api/send-otp-by-email)\n- [x] [Session Management](https://stytch.com/docs/api/session-auth)\n- [x] [WebAuthn](https://stytch.com/docs/api/webauthn-register-start)\n- [x] [User Management](https://stytch.com/docs/api/create-user)\n- [x] [Time-based one-time passcodes (TOTPs)](https://stytch.com/docs/api/totp-create)\n- [x] [Crypto wallets](https://stytch.com/docs/api/crypto-wallet-authenticate-start)\n- [x] [Passwords](https://stytch.com/docs/api/password-create)\n- [x] [M2M](https://stytch.com/docs/api/m2m-client)\n\n**B2B**\n\n- [x] [Organizations](https://stytch.com/docs/b2b/api/organization-object)\n- [x] [Members](https://stytch.com/docs/b2b/api/member-object)\n- [x] [RBAC](https://stytch.com/docs/b2b/api/rbac-resource-object)\n- [x] [Email Magic Links](https://stytch.com/docs/b2b/api/send-login-signup-email)\n- [x] [OAuth logins](https://stytch.com/docs/b2b/api/oauth-google-start)\n- [x] [Session Management](https://stytch.com/docs/b2b/api/session-object)\n- [x] [Single-Sign On](https://stytch.com/docs/b2b/api/sso-authenticate-start)\n- [x] [Discovery](https://stytch.com/docs/b2b/api/discovered-organization-object)\n- [x] [Passwords](https://stytch.com/docs/b2b/api/passwords-authenticate)\n- [x] [SMS OTP (MFA)](https://stytch.com/docs/b2b/api/otp-sms-send)\n- [x] [M2M](https://stytch.com/docs/b2b/api/m2m-client)\n\n\n\n### Example B2C usage\n\nCreate an API client:\n\n```csharp\nusing Stytch.net.Clients;\n\nvar client = new Stytch.net.Clients.ConsumerClient(new ClientConfig\n{\n    ProjectId = \"project-live-c60c0abe-c25a-4472-a9ed-320c6667d317\",\n    ProjectSecret = \"secret-live-80JASucyk7z_G8Z-7dVwZVGXL5NT_qGAQ2I=\"\n});\n```\n\nSend a magic link by email:\n\n```csharp\nclient.OTPs.Email.LoginOrCreate(new OTPsEmailLoginOrCreateRequest(email: \"sandbox@stytch.com\"){\n    LoginMagicLinkUrl = \"https://example.com/authenticate\",\n    SignupMagicLinkUrl = \"https://example.com/authenticate\"\n});\n```\n\nAuthenticate the token from the magic link:\n\n```csharp\nclient.MagicLinks.Authenticate(new AuthenticateRequest(token: \"DOYoip3rvIMMW5lgItikFK-Ak1CfMsgjuiCyI7uuU94=\"));\n```\n\n### Example B2B usage\n\nCreate an API client:\n\n```csharp\nusing Stytch.net.Clients;\n\nvar client = new Stytch.net.Clients.B2BClient(new ClientConfig\n{\n    ProjectId = \"project-live-c60c0abe-c25a-4472-a9ed-320c6667d317\",\n    ProjectSecret = \"secret-live-80JASucyk7z_G8Z-7dVwZVGXL5NT_qGAQ2I=\"\n});\n```\n\nCreate an organization\n\n```csharp\nclient.Organizations.Create(new B2BOrganizationsCreateRequest(organizationName: \"Acme Co\"){\n    OrganizationSlug = \"acme-co\",\n    EmailAllowedDomains = [\"acme.co\"],\n    EmailJITProvisioning = \"RESTRICTED\"\n});\n```\n\nLog the first user into the organization\n\n```csharp\nclient.MagicLinks.Email.LoginOrSignup(new B2BMagicLinksEmailLoginOrSignupRequest(){\n    OrganizationId = \"organization-id-from-create-response-...\",\n    EmailAddress = \"admin@acme.co\",\n}));\n```\n\n## JSON dependencies\nThis SDK has a dependency on `Newtonsoft.Json`. You may see some issues with JSON deserialization if your project is using `System.Text.Json`.\n\n## Support\n\nIf you've found a bug, [open an issue](https://github.com/stytchauth/stytch-dotnet/issues/new)!\n\nIf you have questions or want help troubleshooting, join us in [Slack](https://stytch.com/docs/resources/support/overview) or email support@stytch.com.\n\nIf you've found a security vulnerability, please follow our [responsible disclosure instructions](https://stytch.com/docs/resources/security-and-trust/security#:~:text=Responsible%20disclosure%20program).\n\n## Development\n\nSee [DEVELOPMENT.md](DEVELOPMENT.md)\n\n## Code of Conduct\n\nEveryone interacting in the Stytch project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstytchauth%2Fstytch-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstytchauth%2Fstytch-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstytchauth%2Fstytch-dotnet/lists"}