Example #1
0
 public bool TryGetToken(string key, [NotNullWhen(true)] out string?token)
 {
     if (innerDatabase.TryGetToken(key, out token))
     {
         token = crypto.Unprotect(token);
         return(true);
     }
     return(false);
 }
Example #2
0
 private string LookupRefreshKeyInDatabase() =>
 tokenDatabase.TryGetToken(source.TokenDatabaseKey(), out var key) ? key : "";