 }
 
 struct UserModel: Codable {
-    let social:Int
+    let social:Social
     let sid:String
     let auth:String
     let given:String


struct LoginModel: Codable {
    let gid:Int             // always 0
    let social:Int
    let auth:String
    let sid:String
    let action:String       // always "login"

import UIKit
import Foundation

enum Social: Int, Decodable, Encodable {
    case
        UNKNOWN       = 0,
        GOOGLE        = 1,
