FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
andreterron
andreterrontwitter
Public
Like
4
twitter
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
README.md

Login with Twitter 𝕏

Use this val to login with 𝕏 and save your token into a twitter_token val

Usage

  1. Fork this val
  2. Change the 🔒 privacy to "Unlisted"
  3. Navigate to https://developer.twitter.com/en/portal/dashboard to create an OAuth app and save your client id and secret to your secrets page
  4. Navigate to https://{your_username}-twitter.web.val.run to authenticate with 𝕏

And then you'll have your tokens saved to a twitter_token val!

Other Twitter 𝕏 helper vals

  • Refresh your tokens: https://www.val.town/v/andreterron/refreshTwitterToken
  • Fetch user by id: https://www.val.town/v/andreterron/fetchTwitterUser
  • Search posts: https://www.val.town/v/andreterron/searchTweets
  • Write an X post: https://www.val.town/v/andreterron/postTweet
Code
README.mdmain.tsx
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.