Merge pull request #190 from Cellane/patch-1

Fixed typo in Auth/Persist
This commit is contained in:
Tanner 2017-07-19 19:21:05 -04:00 committed by GitHub
commit bf3f2b442d
1 changed files with 5 additions and 5 deletions

View File

@ -30,12 +30,12 @@ import AuthProvider
import HTTP
extension User: SessionPersistable {
func persist(for: Request) throws {
// something custom
}
func persist(for: Request) throws {
// something custom
}
static func fetchPersisted(for: Request) throws -> Self? {
// something custom
// something custom
}
}
@ -47,7 +47,7 @@ Now that the user is `SessionPersistable`, we can create our middleware.
#### Sessions
First let's start by creating `SessionMiddleware`. We'll use the `MemorySessions()` to get started.
First let's start by creating `SessionsMiddleware`. We'll use the `MemorySessions()` to get started.
```swift
let memory = MemorySessions()