-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release a version compatible with ESA v3.1.0 #297
Comments
@gwak while I have not personally tested it yet, I don't see any reason you can't use the latest version of |
I'm experiencing the same issue, for me its mostly that the "DataAdapterMixin" is deprecated which is causing lots of warnings in the new versions. |
The I have not had an opportunity to add text to the readme to describe how to use import { inject } from '@ember/service';
import { computed } from '@ember/object';
import DS from 'ember-data';
export default DS.RESTAdapter.extend({
session: inject('session'),
headers: computed('session.isAuthenticated', 'session.data.authenticated.token', function() {
if (this.session.isAuthenticated) {
return {
Authorization: `Bearer ${this.session.data.authenticated.token}`,
};
} else {
return {};
}
}),
handleResponse(status) {
if (status === 401 && this.session.isAuthenticated) {
this.session.invalidate();
}
return this._super(...arguments);
},
}); |
Thank you, I was able to remove the token mixin use with this. |
I have updated the documentation: #299 |
Hi,
We're currently migrating our app off of mixins. We have used ember-simple-auth with ember-simple-auth-token successfully in the past.
Now that ember-simple-auth has released the final v3.1.0 version, is there a compatible version of ember-simple-auth-token in the works ?
If not, is it feasible soon ?
Thanks
The text was updated successfully, but these errors were encountered: