Method Unprotect(string, TimeSpan)

Assembly: redb.Identity.Http.dll

Decrypts a session ticket. Returns null if the ticket is invalid, tampered, or expired.
Supports both v1 (no sessionId) and v2 (with sessionId) formats for rolling upgrade.

public SessionTicket? Unprotect(string ticket, TimeSpan maxAge)