public bool AuthoriseSingleUseToken(string id) { if (string.IsNullOrWhiteSpace(id) || !IsRegistered(id)) { return(false); } Db.Advanced.DocumentStore.DatabaseCommands.Delete(id, null); Db.ClearStaleIndexes(); return(true); }
public bool AuthoriseSingleUseToken(string id) { if (string.IsNullOrWhiteSpace(id) || !IsRegistered(id)) { return(false); } Db.Advanced.DocumentStore.DatabaseCommands.Delete(id, null); Db.ClearStaleIndexes(); return(true); }