StoredToken.fromTokenSet

Build a StoredToken from a freshly issued TokenSet, computing the absolute expiry from now + expiresIn (only when expiresIn is positive). A TokenSet from a refresh that omits refresh_token keeps prevRefresh (RFC 6749 allows the AS to reissue or retain it).

struct StoredToken
static @safe pure nothrow
fromTokenSet
(,
string resource
,
long now
,
string prevRefresh = ""
)