Add the Auth0 Scripts and Install angular2-jwt Install angular2-jwt with npm. ? 添加javascript引用 2.修改app.ts 这里需要把用到类库angular2-jwt引用到项目中。同时还需要把Http也要加进来 ? import {Type} from 'angular2/core'; 4 import {AuthHttp, JwtHelper, tokenNotExpired,AuthConfig} from 'angular2 ); 88 89 // If the user is authenticated, use the token stream 90 // provided by angular2 /pages/services/dataService'; 5 import {tokenNotExpired, JwtHelper,AuthHttp, AuthConfig} from 'angular2