Coder Social home page Coder Social logo

Comments (4)

oransel avatar oransel commented on August 20, 2024 1

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.

oransel avatar oransel commented on August 20, 2024

It will be great if the oauth life cycle was built as a function/module instead of command line apps.

from tdameritradejs.

knicola avatar knicola commented on August 20, 2024

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.

knicola avatar knicola commented on August 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.