Method CreateKeyAsync(string, string?, string?, DateTimeOffset?, CancellationToken)

Assembly: redb.Tsak.Core.dll

Create a new API key, store its hash, and return the raw key (shown only once).

public Task<(string RawKey, ApiKeyRecord Record)> CreateKeyAsync(string name, string? userId = null, string? roles = null, DateTimeOffset? expiresAt = null, CancellationToken ct = default)