Skip to content

Commit

Permalink
All fluent models will have separate IDs and will be final extendable…
Browse files Browse the repository at this point in the history
… classes instead of open
  • Loading branch information
0xTim committed Aug 2, 2017
1 parent ea5026b commit f032e2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Sources/OAuth/Models/OAuthUser.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import Authentication
import Core

open class OAuthUser: Authenticatable {
public final class OAuthUser: Authenticatable, Extendable {
public let username: String
public let emailAddress: String?
public let password: Bytes
open var userID: String?
public let userID: String?

public var extend: [String: Any] = [:]

public init(userID: String?, username: String, emailAddress: String?, password: Bytes) {
self.username = username
Expand Down
2 changes: 1 addition & 1 deletion Sources/OAuth/Models/Tokens/AccessToken.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation
import Core

public final class AccessToken {
public final class AccessToken: Extendable {
public let tokenString: String
public let clientID: String
public let userID: String?
Expand Down

0 comments on commit f032e2c

Please sign in to comment.