mirror of https://github.com/vapor/docs.git
Merge pull request #190 from Cellane/patch-1
Fixed typo in Auth/Persist
This commit is contained in:
commit
bf3f2b442d
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue