An example application demonstrating how Magic Link works with WorkOS and .NET.
Clone this repo and install dependencies:
git clone https://github.com/workos-inc/dotnet-magic-link-example.git && cd dotnet-magic-link-example && dotnet build
- Grab your API Key.
- Grab your Client ID.
- Set these as environment variables in the Properties/launchSettings.json file,
labeled
WORKOS_API_KEY
andWORKOS_CLIENT_ID
. - Set your Default Redirect Link to
https://localhost:5001/success
.
dotnet run
Head to https://localhost:5001
and input an email address to log in using Magic Link!
For more information, see the WorkOS .NET SDK documentation.