HashHelper.GenerateToken Method

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

GenerateToken(DateTime)

Generates a base64url encoded validation token that expires at the specified time.

public static string GenerateToken(DateTime expires)

Parameters

expires
System.DateTime

The date and time (UTC) when the token should no longer be valid.

Returns

string

A token.