https://github.com/lukeuke/lukeuke.authentication.helper
Nuget package for generating JWT's for my usage in many applications
https://github.com/lukeuke/lukeuke.authentication.helper
Last synced: 8 months ago
JSON representation
Nuget package for generating JWT's for my usage in many applications
- Host: GitHub
- URL: https://github.com/lukeuke/lukeuke.authentication.helper
- Owner: Lukeuke
- Created: 2024-12-04T22:17:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-04T23:20:12.000Z (over 1 year ago)
- Last Synced: 2025-10-13T04:39:41.113Z (8 months ago)
- Language: C#
- Homepage: https://www.nuget.org/packages/Lukeuke.Authentication.Jwt
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jwt bearer helper package
Feel free to contribute
## Examples of use
```csharp
///
/// Represents an application-specific implementation of an identity user.
///
public class User : IdentityUser
{
///
/// The username of the user.
///
public string Username { get; set; } = string.Empty;
///
/// The email address of the user.
///
public string Email { get; set; } = string.Empty;
}
```
```csharp
var user = new User("myRawPassword")
{
Username = "JohnDoe",
Email = "john.doe@example.com"
};
// Salt and hash the password
user.ProvideSaltAndHash();
```