Website url and CallBack url for Exponent apps


#1

Exponent app developers claim that the callBack url for expo apps is:
exp://appName.username.app.exp.direct:80

When I use that to create a twitter app it says invalid url. any help ?


#2

As I understand it, Exponent is used to build mobile apps. You could try using exp:// on its own as the callback URL. However, if you have several of these apps on a device, you’d need each of them to have a unique mobile URI, so I don’t know how to help you to resolve that.


#3

@andypiper

Many thanks for your reply. I followed this twitter login example which specified the callback url in the backend code to be:
exp://xe-rh9.janic.twitter-login.exp.direct:80+/redirect

When I entered this url in the app settings in my twitter dashboard, it showed invalid url (See the attached photo)


#4

Unfortunately that example has not been updated since the new Callback URL requirements that came in last month. I’m not familiar with Expo but that’s not a valid URI for our callback system on mobile. It would need to use a callback URI without the full path, as documented in our callback page.