setup base jwt authentication
This commit is contained in:
12
app/controllers/application.js
Normal file
12
app/controllers/application.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import Controller from '@ember/controller';
|
||||
import { inject as service } from '@ember/service';
|
||||
import { action } from "@ember/object";
|
||||
|
||||
export default class ApplicationController extends Controller {
|
||||
@service session;
|
||||
|
||||
@action
|
||||
invalidateSession() {
|
||||
this.session.invalidate();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user