Skip to content

Commit 141396f

Browse files
committed
added instructions for #682
1 parent b028d56 commit 141396f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,12 @@ In the above simple example, we're creating a new request signer that simply
199199
Base64 encodes the URL. Of course you'd do something more sophisticated, but
200200
after encoding it, a header called `signature` is set before sending the request.
201201

202+
You can add it to the swagger-client like such:
203+
204+
```js
205+
client.clientAuthorizations.add('my-auth', new CustomRequestSigner());
206+
```
207+
202208
### How does it work?
203209
The swagger javascript client reads the swagger api definition directly from the server. As it does, it constructs a client based on the api definition, which means it is completely dynamic. It even reads the api text descriptions (which are intended for humans!) and provides help if you need it:
204210

0 commit comments

Comments
 (0)