I'm flying from Taipei (TPE) - San Francisco (SFO) - Toronto (YYZ).
I have a two-hour layover in San Francisco. This trip was booked as one ticket with one airline. However, the second leg of the trip looks like it will be a codeshare with a partner airline.
From some research, it seems like I will have to pick up my luggage in San Francisco, go through US customs, and drop the luggage off again. If this is the case, will I have enough time on the layover or is it likely that I'll miss the second flight? If it's not enough time, what's my best course of action?