-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add SendMagicAuthCode * Add Test * Description fix * lint * Revise description * Revised Send Magic Auth * Update user object to not include UserType * Add SendMagicAuthCodeResponse * Rename description * Rename description * Newline * Remove MagicAuthChallenge file --------- Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
- Loading branch information
1 parent
ec3ec8b
commit 3c0b100
Showing
4 changed files
with
92 additions
and
4 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/WorkOS.net/Services/UserManagement/Entities/SendMagicAuthCodeResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace WorkOS | ||
{ | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Newtonsoft.Json; | ||
|
||
/// <summary> | ||
/// Represents a response for a Magic Auth code. | ||
/// </summary> | ||
public class SendMagicAuthCodeResponse | ||
{ | ||
/// <summary> | ||
/// The corresponding User object. | ||
/// </summary> | ||
[JsonProperty("user")] | ||
public User User { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/WorkOS.net/Services/UserManagement/_interfaces/SendMagicAuthCodeOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace WorkOS | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
/// <summary> | ||
/// The parameters to send Magic Auth code. | ||
/// </summary> | ||
public class SendMagicAuthCodeOptions : BaseOptions | ||
{ | ||
/// <summary> | ||
/// The email address of the user. | ||
/// </summary> | ||
[JsonProperty("email")] | ||
public string Email { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters