Skip to content

Commit

Permalink
[fix] 애플 자동 로그인
Browse files Browse the repository at this point in the history
  • Loading branch information
doyeonk429 committed Nov 26, 2024
1 parent 97b8e37 commit c5bda29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions DropDrug/Sources/Models/Auth/RegisterManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ extension SelectLoginTypeVC {
SelectLoginTypeVC.keychain.set(data.accessToken, forKey: "serverAccessToken")
completion(true)
} catch {
// print("Failed to map data : \(error)")
Toaster.shared.makeToast("데이터를 불러오는데 실패했습니다.")
Toaster.shared.makeToast("\(response.statusCode) : 데이터를 불러오는데 실패했습니다.")
completion(false)
}
case .failure(let error) :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ extension SelectLoginTypeVC : ASAuthorizationControllerDelegate {

if let identityToken = appleIDCredential.identityToken,
let identityTokenString = String(data: identityToken, encoding: .utf8),
let emailString = email{
let emailString = email {
SelectLoginTypeVC.keychain.set(identityTokenString, forKey: "AppleIDToken")
SelectLoginTypeVC.keychain.set(emailString, forKey: "AppleIDEmail")
SelectLoginTypeVC.keychain.set(formattedName, forKey: "AppleIDName")
Expand Down

0 comments on commit c5bda29

Please sign in to comment.