|
@@ -277,12 +277,12 @@ class KMSignUpViewModel: ObservableObject {
|
|
if self.stayState {
|
|
if self.stayState {
|
|
UserDefaults.standard.setValue(refresh_token, forKey: "MemberRefreshToken")
|
|
UserDefaults.standard.setValue(refresh_token, forKey: "MemberRefreshToken")
|
|
UserDefaults.standard.setValue(access_token, forKey: "MemberAccessToken")
|
|
UserDefaults.standard.setValue(access_token, forKey: "MemberAccessToken")
|
|
- UserDefaults.standard.synchronize()
|
|
|
|
} else {
|
|
} else {
|
|
UserDefaults.standard.setValue("", forKey: "MemberRefreshToken")
|
|
UserDefaults.standard.setValue("", forKey: "MemberRefreshToken")
|
|
UserDefaults.standard.setValue("", forKey: "MemberAccessToken")
|
|
UserDefaults.standard.setValue("", forKey: "MemberAccessToken")
|
|
- UserDefaults.standard.synchronize()
|
|
|
|
}
|
|
}
|
|
|
|
+ UserDefaults.standard.setValue(self.email, forKey: "MemberSystemAccount")
|
|
|
|
+ UserDefaults.standard.synchronize()
|
|
KMMemberInfo.shared.refresh_token = refresh_token!
|
|
KMMemberInfo.shared.refresh_token = refresh_token!
|
|
KMMemberInfo.shared.access_token = access_token!
|
|
KMMemberInfo.shared.access_token = access_token!
|
|
KMMemberInfo.shared.token_type = token_type!
|
|
KMMemberInfo.shared.token_type = token_type!
|