mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
e5f6e63309
- Update dependency ember-simple-auth to v4 - Removed `setup-session-service` initializer as it's no longer needed/present in v4 Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
18 lines
617 B
JavaScript
18 lines
617 B
JavaScript
import Configuration from 'ember-simple-auth/configuration';
|
|
import ENV from '../config/environment';
|
|
import ghostPaths from '../utils/ghost-paths';
|
|
import setupSession from 'ember-simple-auth/initializers/setup-session';
|
|
import setupSessionRestoration from 'ember-simple-auth/initializers/setup-session-restoration';
|
|
|
|
export default {
|
|
name: 'ember-simple-auth',
|
|
initialize(registry) {
|
|
let config = ENV['ember-simple-auth'] || {};
|
|
config.rootURL = ghostPaths().adminRoot;
|
|
Configuration.load(config);
|
|
|
|
setupSession(registry);
|
|
setupSessionRestoration(registry);
|
|
}
|
|
};
|