diff --git a/auth/middleware.md b/auth/middleware.md index af4f766e..f4585824 100644 --- a/auth/middleware.md +++ b/auth/middleware.md @@ -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 diff --git a/auth/request.md b/auth/request.md index 4368e4dd..fb1cccfb 100644 --- a/auth/request.md +++ b/auth/request.md @@ -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.