How to use the ember-simple-auth/initializers/setup-session-service function in ember-simple-auth

To help you get started, we’ve selected a few ember-simple-auth examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TryGhost / Ghost-Admin / app / initializers / ember-simple-auth.js View on Github external
initialize(registry) {
        let config = ENV['ember-simple-auth'] || {};
        config.rootURL = ghostPaths().adminRoot;
        Configuration.load(config);

        setupSession(registry);
        setupSessionService(registry);
        setupSessionRestoration(registry);
    }
};