I am making a login form with ember in front end and node in back end. After login node api returns an authentication token which is saved in browser session. I want to send this token in every further request made to the other APIs i.e., sending it as a payload in each get requests from ember. this is how I call the /registers API with which i need to send the token as payload.
export default Ember.Route.extend({
model() {
var users = this.store.find('register');
return users;
}
});
Aucun commentaire:
Enregistrer un commentaire