Skip to content

Commit

Permalink
Add integration section
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Oct 16, 2023
1 parent 0602838 commit 25c6e4c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ There's also built-in support for services to streamline integration:

If you'd like to contribute a similar thing for another service, please open a PR!

## Integration

Swift Package Manager:

```swift
dependencies: [
.package(url: "https://github.com/ChimeHQ/OAuthenticator", from: "0.3.0")
]
```

## Usage

The main type is the `Authenticator`. It can execute a `URLRequest` in a similar fashion to `URLSession`, but will handle all authentication requirements and tack on the needed `Authorization` header. Its behavior is controlled via `Authenticator.Configuration` and `URLResponseProvider`. By default, the `URLResponseProvider` will be a private `URLSession`, but you can customize this if needed.
Expand Down

0 comments on commit 25c6e4c

Please sign in to comment.