Skip to content

Commit b350e0f

Browse files
committed
update readme
1 parent a66d585 commit b350e0f

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# @auth0/angular-jwt
22

3-
### **NOTE:** This library is now at version 1.0 and is published on npm as `@auth0/angular-jwt`. If you're looking for the pre-v1.0 version of this library, it can be found in the `pre-v1.0` branch and on npm as `angular2-jwt`.
3+
### **NOTE:** This library is now at version 2 and is published on npm as `@auth0/angular-jwt`. If you're looking for the pre-v1.0 version of this library, it can be found in the `pre-v1.0` branch and on npm as `angular2-jwt`.
4+
5+
**@auth0/angular-jwt v2 is to be used with Angular v6+ and RxJS v6+. For Angular v4.3 to v5+, use @auth0/angular-jwt v1**
46

57
This library provides an `HttpInterceptor` which automatically attaches a [JSON Web Token](https://jwt.io) to `HttpClient` requests.
68

@@ -127,7 +129,11 @@ initial auth route(s) are on a whitelisted domain and take basic auth headers.
127129
JwtModule.forRoot({
128130
config: {
129131
// ...
130-
blacklistedRoutes: ['localhost:3001/auth/', 'foo.com/bar/', /localhost:3001\/foo\/far.*/] // strings and regular expressions
132+
blacklistedRoutes: [
133+
'localhost:3001/auth/',
134+
'foo.com/bar/',
135+
/localhost:3001\/foo\/far.*/
136+
] // strings and regular expressions
131137
}
132138
});
133139
```

0 commit comments

Comments
 (0)