Getting type: dismiss for twitter
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
In twitter example, for AuthSession I'm getting
```
Auth response received! Object {
"type": "dismiss",
}
```
**To Reproduce**
Steps to reproduce the behavior:
1. Go to index.js in backend and replace consumer_key & consumer_secret with your Twitter app Consumer API keys (API Key, API Secret Key respectively).
2. on Twitter developer App Details enable Sign in with Twitter.
3. Add the callback `exp://` (as for the output from `console.log(`Callback URL: ${redirect}`)` it displays schema with the host like exp://192.168.1.29 ... but that won't be allowed by Twitter)
4.Depending on your LAN IP In App.js replace requestTokenURL & accessTokenURL with something like this
```
const requestTokenURL = "http://192.168.1.29:3000/request-token";
const accessTokenURL = "http://192.168.1.29:3000/access-token";
```
5. run `expo start` in your root file
6. run `node index.js` in backend folder
7. From your mobile, download expo client, and scan QR code
8. Try to login. You will get the following
```
Auth response received! Object {
"type": "dismiss",
}
```
**Expected behavior**
```
Auth response received! Object {
"type": "success",
...
}
```
**Desktop (please complete the following information):**
- OS: MacOS
- Browser N/A
**Smartphone (please complete the following information):**
- Device: Huwawei
- OS: Android
- Browser Chrome
**Additional context**
`console.log("Request tokens fetched!", requestTokens);` outputs valid tokens
Contributor guide
Assessment
This issue has not been assessed yet.