Comments (4)
It will be a nice addition to have the auth handled for the user of the module. Almost all the work is there already. Mostly, the environment variables and cert location can be passed in as function parameters.
from tdameritradejs.
It will be great if the oauth life cycle was built as a function/module instead of command line apps.
from tdameritradejs.
The scripts were only intended to be used for the development of this module, but I can perhaps look into the possibility of writing a separate auth module.
from tdameritradejs.
The scripts have been removed. Instead 2 new methods will be added to make oauth2 authorization much easier.
TDAmeritrade.authorize(): Promise
to bootstrap a local web server for oauth2 authorization. Will request access token and update config if authorization is successful.TDAmeritrade.login(): Promise
to automatically authorize or refresh the access token depending on whether the access and/or refresh token exist and are not expired.
from tdameritradejs.
Related Issues (13)
- Load Valid Tokens from file HOT 1
- Doucmentation HOT 1
- FYI See this repo with clean TD Ameritrade API schemas. HOT 1
- WARNING This library is still in its early stages of development and thus far from ready for production use. HOT 2
- User guide HOT 1
- Returned data is the HTTP response vs the body HOT 4
- refreshAccessToken gets new refreshToken HOT 4
- How to get Futures quotes faster than 1 minue HOT 4
- Unable to login on node.js HOT 4
- Self signed cert generation update HOT 3
- Add support for CHART_HISTORY_FUTURES HOT 5
- Add auth methods HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tdameritradejs.