Merge pull request #44 from siemensikkema/master

Minor improvements to auth documentation
This commit is contained in:
Tanner 2016-09-27 10:53:08 -04:00 committed by GitHub
commit ef5ec4fc25
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ Once you've added the `AuthMiddleware` to the available middleware dictionary, m
### Sharing Cache
If you'd like the `Droplet` and the `AuthMiddleware` to share the same `CacheProtocol`, initialize it earlier and pass it to both.
If you'd like the `Droplet` and the `AuthMiddleware` to share the same `CacheProtocol`, pass the same instance to both.
```
import VaporRedis

View File

@ -125,7 +125,7 @@ Adding the `Identifier` case for `Credentials` is easy, just look up the user by
```swift
let id = Identifier(id: 42)
try req.auth.log(id)
try req.auth.login(id)
```
Now you can manually log users in with just their identifiers.