Diving into Ember Octane available now!
Full Course Now Available!
Already purchased this course? Login
10:55:20 | 61 videos, more to come
Time
Content
This video starts to look at user sessions in Ember using the ember-simple-auth
and ember-simple-auth-token
addons.
In this video, we login the user and store the user JWT.
Since the recording of this video, ember-simple-auth-token
has changed the way that it handles error responses. Instead of sending back the response JSON data, ember-simple-auth-token
now sends back a response object with more information.
To adjust to this change, the code in the login
action should use e.json.errors
to grab the errors array from the response JSON data.
The entire login
action should be:
login(attrs) {
this.get('session').authenticate('authenticator:jwt', {
email: attrs.email,
password: attrs.password
}).then(() => {
this.transitionToRoute('index');
}).catch((e) => {
this.set('errors', e.json.errors);
});
}
Instructor
Ryan Tablada is a Senior Engineer at Prototypal and member of the Ember Learning team. He formerly taught at the Iron Yard coding school and has been using Ember.js since 2011.
In this course, we'll build a Full Stack app in Ember.js 3.0 with a real JSONAPI compliant backend to manage books, authors, users, reviews, and the relationships between them. Working with Ember components, you'll build reusable forms to create, update, and delete the resources in your application. Then, following conventions set by the Ember community, you'll create a search component to easily look up books and authors. You'll later discover the power of liquid-fire
, an Ember addon we'll use, to create stunning transitions between routes and pages. Then you'll tackle user signup and authentication using ember-simple-auth
to manage user sessions and authenticated routes. Finally, you'll deploy your new full stack Ember application to Heroku with server side rendering using ember-fastboot
.
Purchase this Series
FULL COURSE AVAILABLE NOW
$499 $99
All you need to start building full-stack applications today!
If you want the freedom to create cutting-edge frontends and backends, Embercasts will give you the tools to do it.
I really really like the integration of server side and client side concepts. I don’t understand why more tutorials are not done this way.