1.0.0-rc.13 • Published 1 year ago

@ngx-toolset/api-token-interceptor v1.0.0-rc.13

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@ngx-toolset/api-token-interceptor

Build & Release npm version License: MIT npm.io

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

1 year ago

1.0.0-rc.12

1 year ago

1.0.0-rc.11

2 years ago

1.0.0-rc.10

2 years ago

1.0.0-rc.9

2 years ago

1.0.0-rc.8

2 years ago

1.0.0-rc.7

2 years ago

1.0.0-rc.6

2 years ago

1.0.0-rc.5

2 years ago

1.0.0-rc.4

2 years ago

1.0.0-rc.3

2 years ago

1.0.0-rc.2

2 years ago

1.0.0-rc.1

2 years ago

1.0.0-rc.0

2 years ago

0.0.7-alpha.0

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago