Skip to content

Commit

Permalink
Call session#setup method
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Mar 8, 2024
1 parent c6a3bff commit 99b7430
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions frontend/app/routes/application.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';

export default class Application extends Route {
@service session;

async beforeModel() {
await this.session.setup();
}
}
3 changes: 3 additions & 0 deletions frontend/ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ module.exports = function (defaults) {
},
},
},
'ember-simple-auth': {
useSessionSetupMethod: true,
},
});

app.import('node_modules/jquery/dist/jquery.slim.js');
Expand Down

0 comments on commit 99b7430

Please sign in to comment.