JwtHelper.Encode Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Encode(IDictionary, int?)

Encode a JSON web token.

public static string Encode(IDictionary<string, string> claims, int? exp = default(int? ))

Parameters

claims
System.Collections.Generic.IDictionary

The claims to add to the token

exp
int?

Number of seconds until the token expires.

Returns

string

The encoded JWT token string.