mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
15 lines
301 B
Swift
15 lines
301 B
Swift
|
|
import Foundation
|
||
|
|
|
||
|
|
public struct AuthVerification: Decodable {
|
||
|
|
public let authStatus: AuthStatus
|
||
|
|
}
|
||
|
|
|
||
|
|
public enum AuthStatus: String, Decodable {
|
||
|
|
case authenticated = "AUTHENTICATED"
|
||
|
|
case unAuthenticated = "NOT_AUTHENTICATED"
|
||
|
|
|
||
|
|
public var isAuthenticated: Bool {
|
||
|
|
self == .authenticated
|
||
|
|
}
|
||
|
|
}
|