Class JwtBearer
static class for easy creation of jwt bearer tokens
Inherited Members
Namespace: FastEndpoints.Security
Assembly: FastEndpoints.Security.dll
Syntax
public static class JwtBearer
Methods
CreateToken(Action<JwtCreationOptions>)
generates jwt tokens with supplied settings.
Declaration
public static string CreateToken(Action<JwtCreationOptions> options)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<JwtCreationOptions> | options | action to configure jwt creation options. |
Returns
| Type | Description |
|---|---|
| string |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | thrown if a token signing key is not supplied. |