docs: improve readme files

This commit is contained in:
simon
2021-01-23 22:44:53 +01:00
parent 1843f36c4d
commit 97584e37c2
2 changed files with 76 additions and 46 deletions

View File

@@ -168,3 +168,25 @@ c = {
}
};
```
## HTTP Post Auth
http authenticiation via http post request
```typescript
interface IStaticAuthOtions {
url: string; // url to send a post request with username and password
}
```
Example
```js
c = {
authentication: 'HTTPAuth',
authenticationOptions: {
url: 'https://my-website.com/api/backend-login'
}
};
```