A quick, intuitive script that creates reddit oauth tokens for you
$ npx reddit-oauth-helper
A quick script that creates reddit oauth tokens for you
License: MIT License
A quick, intuitive script that creates reddit oauth tokens for you
$ npx reddit-oauth-helper
me@a360:~$ npx reddit-oath-helper
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/reddit-oath-helper - Not found
npm ERR! 404
npm ERR! 404 'reddit-oath-helper@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! /mnt/c/Users/me/.npm/_logs/2020-04-28T05_19_13_534Z-debug.log
Install for [ 'reddit-oath-helper@latest' ] failed with code 1
installing reddit-oauth-helper via npm will raise:
found 1 critical severity vulnerability
This is because of open, according to https://www.npmjs.com/advisories/663.
Versions of open before 6.0.0 are vulnerable to command injection when unsanitized user input is passed in.
Just repeats the question. node cli
Entered my client id + secret and checked all.
When copy/pasting a client secret with a dash, reddit-oauth-helper does not function.
After creating several apps on reddit and finally getting a secret without a dash, the program worked just fine.
Please enter your client secret. This is the 27-character string that appears when you click "edit" next to your
app on this page: https://www.reddit.com/prefs/apps
At the moment, only the "personal use script" app type is supported.
Hello,
I use oauth authorization but I still ratelimit problems.
I use this code, but my requests are not processed.
const r = new snoowrap({
userAgent: '---',
clientId: '-----',
clientSecret: '----',
refreshToken: '------'
})
r.config({requestDelay : 1010, continueAfterRatelimitError : true, })
I am not able to use the cli because it is saying that the client secret should be 27 characters, but mine is 30 characters.
Please enter your client secret. This is the 27-character string that appears when you click "edit" next to your app on this page: https://www.reddit.com/prefs/apps
Hey, I just want a js function can be used to revoke a token, this will help me in my project.
and thanks.
I'm trying to generate a permanent token for my app, so I can put it in an .env
file,. and move on to the logic :)
The only permission I need is "read". Regardless of whether I mark the permanent check box on https://not-an-aardvark.github.io/reddit-oauth-helper/
or not, the response comes back with a token limited to an hour. I've tried everything - it always comes back with:
{
access_token: "number-string"
token_type: "bearer"
expires_in: "3600" <-- culprit
scope: "read"
}
I tried using the command line version (with npx
): changed the redirect_uri for my app, ran the command line, and got the exact same result. It ends up generating this URL:
https://www.reddit.com/api/v1/authorize?client_id=myclientid&response_type=code&state=somestring%2Bkg%3D%3D&redirect_uri=http%3A%2F%2Flocalhost%3A65010%2Fauthorize_callback&duration=permanent&scope=read
The problem is, after a token expires, snoowrap fails in spectacular ways (returning HTML instead of Listings object etc.), so I must have a permanent token.
Is it something to do with Reddit itself? My app? Something in the code?
Thanks!
This would make it easier to use the generated tokens.
Seems like no matter what I try I just get You broke reddit error on the step when browser opens up.
Hello! Thanks for making this script/app, it's very useful.
When I tried to get a token via the CLI, I got stuck trying to submit a Client ID as it was checking for a 14 character string when my Client ID is 22 characters long.
However when I switched to using your hosted web interface, I was able to use my Client ID without issue.
I don't know if the fix is as simple as removing the length limitation so I'll leave this as an issue and not a PR.
Thanks again!
node -v : v6.10.2
But it works ok with classic windows console prompt, so it seems more a CYGWIN issue
You currently can't select the generated tokens in the web view, making it hard to copy them to the clipboard.
This seems to be due to the disabled
property on the input
elements, this should be replaced by the readonly
property.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.