From 90b45325c4e894b2f8f187ae879adc7ea9459440 Mon Sep 17 00:00:00 2001 From: Mark Patton Date: Tue, 2 Apr 2024 14:33:17 -0400 Subject: [PATCH] Remove unused routes --- app/router.js | 2 -- app/routes/auth-callback.js | 15 --------------- 2 files changed, 17 deletions(-) delete mode 100644 app/routes/auth-callback.js diff --git a/app/router.js b/app/router.js index f7c8d5a9d..ba14f45b9 100644 --- a/app/router.js +++ b/app/router.js @@ -28,8 +28,6 @@ Router.map(function () { }); this.route('not-found-error', { path: '/*path' }); this.route('thanks'); - this.route('auth-callback'); - this.route('authenticated'); }); export default Router; diff --git a/app/routes/auth-callback.js b/app/routes/auth-callback.js deleted file mode 100644 index 321c71ecf..000000000 --- a/app/routes/auth-callback.js +++ /dev/null @@ -1,15 +0,0 @@ -import Route from '@ember/routing/route'; -import { inject as service } from '@ember/service'; - -export default class AuthCallbackRoute extends Route { - @service session; - @service router; - - async beforeModel() { - try { - await this.session.authenticate('authenticator:http-only'); - } catch (error) { - window.location.replace(`${window.location.origin}/logout`); - } - } -}