My goal is to send the user to a different page/route other than the oauth default after invalidation. Currently the default is my root login page. How can I change this?
I have this logout code in app/controller/protected.js. Specifically the .invalidate();
method is what I'm trying to modify.
import { inject as service } from '@ember/service';
export default Controller.extend({
session: service(),
actions: {
invalidateSession() {
this.get('session').invalidate();
}
}
});
This is my code in app/routes/protected.js
import Route from '@ember/routing/route';
import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';
export default Route.extend(AuthenticatedRouteMixin, {
});
Any help is much appreciated!
Aucun commentaire:
Enregistrer un commentaire