1.0.0-rc.13 • Published 3 years ago
@ngx-toolset/api-token-interceptor v1.0.0-rc.13
@ngx-toolset/api-token-interceptor
Table of Contents
Features
- Adds an
Authorization
header to an HTTP request
Hint: The features mentioned above only work when using Angular HttpClient.
Installation
ng add @ngx-toolset/api-token-interceptor
Usage
Provide Injection Tokens
Provide proper value for API_URL_REGEX
and BEARER_TOKEN_CALLBACK_FN
in your AppModule
.
Injection Tokens
API_URL_REGEX
Only HTTP requests with URLs matching the Regex will receive an Authorization
HTTP header.
BEARER_TOKEN_CALLBACK_FN
This callback is used to build the value of the Authorization
header.
1.0.0-rc.13
3 years ago
1.0.0-rc.12
3 years ago
1.0.0-rc.11
3 years ago
1.0.0-rc.10
3 years ago
1.0.0-rc.9
3 years ago
1.0.0-rc.8
3 years ago
1.0.0-rc.7
3 years ago
1.0.0-rc.6
3 years ago
1.0.0-rc.5
3 years ago
1.0.0-rc.4
3 years ago
1.0.0-rc.3
3 years ago
1.0.0-rc.2
3 years ago
1.0.0-rc.1
3 years ago
1.0.0-rc.0
3 years ago
0.0.7-alpha.0
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago