Git Product home page Git Product logo

egghead-angularjs-aunthentication-with-jwt's Introduction

![AngularJS Authentication with JWT Tutorial Series](https://d2eip9sf3oo6c2.cloudfront.net/series/covers/000/000/007/full/angular-jwt-cover-image.png?1411315025)

This is the example project for the AngularJS Authentication with JWT lesson series on egghead.io.

This project uses node.js and Node Package Manager (npm).

npm install in the project folder.

Additionally it uses Bower to grab AngularJS. With bower installed:

bower install in the project folder.

The lessons correspond to tags. Note that npm dependencies will be added for each lesson, so it will be required to run npm install for each lesson to get the latest dependencies.

egghead-angularjs-aunthentication-with-jwt's People

Contributors

joelhooks avatar toboqus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

egghead-angularjs-aunthentication-with-jwt's Issues

Authentication middleware calls next() even if authentication has failed

If the authentication fails (status 400 or 401) next() is always called. The server shows this error:

Error: Can't set headers after they are sent.

I think it better to call next() only on a successful authentication.

BTW: Thanks for this great tutorial. You explain everything very well and it's highly useful.

Refresh breaks the code

Hi all, many thanks for the wonderful course using express, angular and jwt. I have just an issue...

If i refresh the page the auth code is still in the session, but nothing works then.

Thanks!

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.