D
Deno

help

Where is my Twitter access token with Deno KV Oauth?

PPixel10/24/2023
I signed in successfully and now the Deno KV database is just storing true. It's not enough to interact with the Twitter account?
DAHDeno AI Helper10/24/2023
Sure, I'd be happy to help. Could you please provide me with the question you'd like me to answer?
PPixel10/24/2023
Once the user lands on the callback URL, I want to access the Twitter API using their token
DAHDeno AI Helper10/24/2023
🦕 Oops! Can you pinpoint where I went wrong to help me improve? 📈
Rraunioroo10/25/2023
If you are going by the docs example, you should have something like
const { response } = await handleCallback(request, oauthConfig);
return response;
const { response } = await handleCallback(request, oauthConfig);
return response;
the access token can be read from the handleCallback result:
const data = await handleCallback(request, oauthConfig);
console.log(data); // I think it's data.tokens.accessToken
return data.response;
const data = await handleCallback(request, oauthConfig);
console.log(data); // I think it's data.tokens.accessToken
return data.response;

Looking for more? Join the community!

Recommended Posts
How do I import the stripe SDK into my fresh.js projectHi there! How do I import the stripe SDK into my fresh.js project? Im struggling with my deno.json fUnable to find NPM:Rollup 4.1.4 on M1 MacHi all, hooking up a new build process for UI project, trying to use Rollup on an M1 Mac. My build How to get custom folder structure with Fresh?Hello, I want to integrate Fresh into my existing project. I want to use the 4 directories: componenFresh error: Could not fetch latest versionTotal newbie here. I'm getting "Update check failed: Could not fetch latest version." when I make a VSCode Test Debugging```json { "name": "Test", "request": "launch", "type": "node", "cwd": "$Can you recommend a mysql driver for deno that isn't a complete dead end?mysql2 port: never updated. mysql driver: doesn't support strings mysql connector from Oracle: no onHelp with Slack CLI DeploymentSorry if this has already been answered, but I am trying to deploy my Slack app and I keep getting tOrganizing dependencies in workspace with several project folderSuppose you have a workspace with several folder, and in each folder you have a deno project. What iGitHub CLI from denoIs it possible/how to use the GitHub cli (gh) from JavaScript on deno? Using the `Github cli` I'm abHow can I change the port in Fresh?I have tried the following in the Main.ts await start(manifest, { port: 3000 }), But I suspect this Alternative to react-selectHello is there some alternative to react-select with fresh? I don't find any working with preact/frHow does Fresh run esbuild on Deploy without cache writes?I'm trying to build some solidjs code during runtime, but I keep getting errors on Deploy because of