Giter Club home page Giter Club logo

api-token-auth's People

Contributors

bengitscode avatar berziiii avatar jrhorn424 avatar micfin avatar payne-chris-r avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

api-token-auth's Issues

Create functions with `function` keyword?

Avoid oneliner arrow functions and the time and confusion that result?

so replace

const signIn = (data) =>
  $.ajax({
    // ...
  });

with

const signIn = function (data) {
  return $.ajax({
    // ...
  });
};

Show them an authenticated resource request?

We show them resources, and we show them auth, but never an authenticated resource request. If @gaand's vision of doing everything authenticated from the start comes true, I don't think this is necessary, but if I have extra time tomorrow, I may talk a little bit about how to do that.

Code consistency

setup functions like

const changePassword = function changePassword(foo){}

Importance of Auth and why we care

@gaand and @jrhorn424 both came up to me after this lesson and mentioned that the lesson left out a good bit of the "why" and focused mostly on the "how." I agree that this is important, but also looked back and noticed that it doesn't exist at all in the README. It should be added. If not by them, than by whoever delivers this next.

How does one generate URL-econded strings for the scripts?

Some scripts use JSON, others use URL-encoded. Other than mentioning that URL-encoded is what actually gets sent over the wire, is there a purpose for doing both kinds for all scripts? Or is this something we can just show once with the sign-up or sign-in script and then just use the -json.sh scripts for the rest?

Rename to `jquery-ajax-auth`?

This feels very much like part of the jquery-ajax-foo sequence (even though it's technically not using the previous/solution -> current/master format, but doesn't follow the same naming convention. Do we a) want to put it into that sequence, where it follows that convention? Or rename it to above? Maybe this is two issues...

Solution is "behind" demo

demo has better example code. solution currently has the same code as master, which we typically consider starter code.

Fix scripts

@gaand says: "These scripts are terrible and should be fixed!"
@gaand Please provide more detail about the nature of their terribleness. ๐Ÿ—ก

Duplicate scripts?

@payne-chris-r asked me to open this. There are two scripts for the same thing and it's confusing.

change-password-json.sh and change-password.sh

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.