chore: 🤖 if origin is unset, redirect away from auth flow

This commit is contained in:
Randall Morey committed 2020-11-24 16:41:56 -05:00
1 parent d4be5504bf
commit 2a7f5d2faa
1 file changed
+5
@@ -6,6 +6,7 @@ export default class ScopesScopeAuthenticateRoute extends Route {
// =services
@service session;
@service origin;
// =methods
@@ -26,4 +27,8 @@ export default class ScopesScopeAuthenticateRoute extends Route {
authMethods: this.store.query('auth-method', { scope_id }),
});
}
redirect() {
if (!this.origin.rendererOrigin) this.replaceWith('index');
}
}