-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import {Authentication} from 'aurelia-auth' #137
Comments
when you look to the 'index' file (aurelia-auth.js) you will see that the Authentication class is not exported.
|
Having a similar issue. The reason I am trying to import Authentication is because this is where setToken() is. How would one go about "Supplying token programmatically" without this? |
Oh, never mind. I got it working with the following.
|
Shouldn't Authentication be exported as part of the node_module though? The example in the docs under "What exactly is 'configured' on the Http Client and can we have multiple endpoints?" point to using the auth.TokenInterceptor so that you can configure the rest of the settings yourself, however because Authentication isn't exported we can't import { Authentication } from 'aurelia-auth'. (On that note the documentation is wrong as well as it injects AuthService into auth which doesn't contain a TokenInterceptor method). The sample app works fine because it is using all of the files from the library in a local context, however when using the library via npm this just doesn't work. |
Trying to do this:
import {Authentication} from 'aurelia-auth';
will give the following error:The text was updated successfully, but these errors were encountered: