A CFI can issue it on the spot.
The FAA is strongly encouraging the use of IACRA for application submissions. An FAA Flight Standards District Office, FAA Designated Pilot Examiner or Airmen Certification Representative can issue a Temporary Part 107 Airmen Certificate to an applicant on the...