Tyler Fisher
Gave this a shot today and got all the way to the OAuth callback after authenticating with my PDS. Something is trying to timeout and can't. I've tried to trace down where exactly this is happening but I'm getting a bit lost. As far as I can tell it's within the oauth-client-expo library?
A generic ATProto OAuth login screen with an error at the bottom that reads:

AbortSignal.timeout is not a function (it is undefined) 1
Samuel
@samuel.fm
ah yeah sorry about this, React Native’s abort signal polyfill is missing this
2
Tyler Fisher
Ah, seeing the discussion about this in the React Native issues now. Thanks for the helpful tutorial though! This is farther than I've ever gotten with Expo. Is there a way for me to supplement the polyfill to get this fully functional?
1 1
Samuel
you can use abortcontroller-polyfill, but to use that you also need to polyfill DOMException iirc you can do this: global.DOMException = Error
1 1
Tyler Fisher
Seems like there are some other pieces of the AbortSignal that don't work even when polyfilled (throwIfAborted, for example) but this isn't really your problem. Thanks!
1