Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot login #13

Open
jasonycw opened this issue Jul 14, 2023 · 6 comments
Open

Cannot login #13

jasonycw opened this issue Jul 14, 2023 · 6 comments

Comments

@jasonycw
Copy link

I forked the repo and tried to deploy via Vercel (https://threads-web-client.vercel.app/)

But seems like it cannot login
image

Probably related the the npm package that this is using threadsjs/threads.js#71

@jasonycw jasonycw changed the title Cannot login after deployment Cannot login Jul 14, 2023
@stevenlafl
Copy link
Owner

Yep, was reported here earlier. I am not sure what the problem is exactly as it doesn't happen for me. While you're here, I recommend you pull the latest version. This fixes some duplicate loading issues, adds an emoji keyboard and will tell you when there are update on the sidebar.

@jasonycw
Copy link
Author

I just saw your comment on threadsjs/threads.js#71 as well, thanks for reporting that, I sync my fork and the latest code seems to still have the same issue unfortunately.

@elijah-wright
Copy link

this is an issue I experienced myself on another project lol! the issue is that Vercel's servers are located in another state (for me, Virginia), so I had to go into the app and approve the request to log in. then I could use it

@jasonycw
Copy link
Author

jasonycw commented Aug 1, 2023

Is there a way to get the token from client browser side instead of through server side API?

@stevenlafl
Copy link
Owner

stevenlafl commented Aug 1, 2023

That is on the radar, as it shouldn't theoretically be necessary to use the server (we'll see if there's CORS BS) - but I have it this way so I can test the frontend without making actual API calls, which would get me banned very quickly while testing. What I need to do is write a function that switches between the two based on the node environment, prod or dev.

@jasonycw
Copy link
Author

jasonycw commented Aug 1, 2023

Cool, seems like every time I try logging in with my vercel app, it triggers security alert on Instagram telling me someone outside my region accessing the account.

It would be much better if everything happens on client side without the need of server API. Or ideally, if there is web Instagram login session, just turn that to Threads session on client side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants