src/JWT/Builder/JwtBuilder.cs
/// <summary>
/// Builds a token using the supplied dependencies.
/// </summary>
/// <returns>The generated JWT</returns>
/// <exception cref="InvalidOperationException">Thrown if either algorithm, serializer, encoder or secret is null</exception>
Builds a token using the supplied dependencies.
Builds a token using the supplied dependencies .
public string Build()
        {
            if (_encoder is null)
                TryCreateEncoder();
            EnsureCanBuild();
            return _encoder.Encode(_jwt.Header, _jwt.Payload, _secrets[0]);
        }
public string Build ( ) { if ( _encoder is null ) TryCreateEncoder ( ) ; EnsureCanBuild ( ) ; return _encoder . Encode ( _jwt . Header , _jwt . Payload , _secrets [ 0 ] ) ; }
Builds a token using the supplied dependencies.
Builds a token using the supplied dependencies .
The generated JWT
The generated JWT
Thrown if either algorithm, serializer, encoder or secret is null
Thrown if either algorithm serializer encoder or secret is null