Comments (2)
After much fiddling and updating and downgrading (jspm), the error is the same, but has moved to being reported by shim:
Unhandled promise rejection TypeError: Cannot read property 'filter' of undefined
at AuthFilterValueConverter.toView (http://localhost:9000/jspm_packages/github/spoonx/[email protected]/authFilter.js:22:26)
at ValueConverter.evaluate (http://localhost:9000/jspm_packages/npm/[email protected]/aurelia-binding.js:1121:33)
at Binding.bind (http://localhost:9000/jspm_packages/npm/[email protected]/aurelia-binding.js:4600:36)
at Controller.bind (http://localhost:9000/jspm_packages/npm/[email protected]/aurelia-templating.js:2745:19)
at View.bind (http://localhost:9000/jspm_packages/npm/[email protected]/aurelia-templating.js:847:24)
at Controller.bind (http://localhost:9000/jspm_packages/npm/[email protected]/aurelia-templating.js:2766:19)
at View.bind (http://localhost:9000/jspm_packages/npm/[email protected]/aurelia-templating.js:847:24)
at Controller.bind (http://localhost:9000/jspm_packages/npm/[email protected]/aurelia-templating.js:2766:19)
at Controller.automate (http://localhost:9000/jspm_packages/npm/[email protected]/aurelia-templating.js:2712:12)
at http://localhost:9000/jspm_packages/npm/[email protected]/aurelia-templating.js:3733:22
(anonymous function) @ shim.js:2516
module.exports @ shim.js:766
queue.(anonymous function) @ shim.js:2784
run @ shim.js:2771
listner @ shim.js:2775
from aurelia-authentication.
After further help in the Aurelia Gitter, it turns out to (of course) be a problem in my own code.
I needed to import the aurelia router to my nav-bar.js
:
import {inject} from 'aurelia-framework';
import {Router} from 'aurelia-router';
import {AuthService} from 'aurelia-auth';
@inject(AuthService, Router)
export class NavBar {
constructor(auth, router) {
this.auth = auth;
this.router = router;
}
get isAuthenticated() {
return this.auth.isAuthenticated();
}
}
from aurelia-authentication.
Related Issues (20)
- Popup not closing: DOMException blocked frame due to cross-origin HOT 2
- Support for not needing new update tokens HOT 2
- Automatic logout if accesstoken expires in more than 24.85 days HOT 1
- Authentication-Change Not Firing in app.ts HOT 1
- Page not reloaded on logout in another tab HOT 7
- If I have the same app open in two different Browser, and log out in one, the other also logs out HOT 1
- Consider supporting httpOnly cookie for storing token HOT 3
- Error after refreshing token HOT 8
- Auth0 not returning Access Token HOT 1
- baseConfig.client.client not defined after baseConfig.configure(authConfig) HOT 1
- Manually setting expired tokens ruins routing HOT 9
- storageChangedReload triggers error HOT 6
- auth0-lock v11 and responseType = 'token' HOT 1
- How Retrieve User Data From Payload?
- ReferenceError: AuthService is not defined HOT 14
- Unable to find module with ID: aurelia-authentication/authFilterValueConverter HOT 2
- unhandle exception on getting from storage
- oAuth 2 not working when inside of Facebook In App Browser HOT 1
- setTimeout(ttl) is not persistent HOT 3
- Read.me API documentation wrong HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aurelia-authentication.