A mixin designed to be used by routes that wish to check if the user is still logged in before transitioning to a new route.

Usage: (in a routes/*.js file)

import Ember from 'ember';
import AuthCheckMixin from '@bennerinformatics/ember-fw-gc/mixin/auth-check';

export default Ember.Route.extend(AuthCheckMixin, {
    // route code here
});

This mixin is used by the addon AuthRoute, which is extended by both AuthRoute and RestrictedRoute, so then, this mixin is incorporated behind the scenes into all the routes used in the Informatics Apps.

Show: