We have an existing PhabricatorAuthTemporaryToken construct which is mostly usable for LFS tokens, but needs a few updates to improve flexibility and modularity.
(This possibly gives us part of a future attack on T10262, as well, and may represent a piece of Nuance authentication.)