-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 애플 로그인 버튼 프레임워크 제공 디자인으로 변경 * feat: 다크 모드 대응 가능한 버튼 스타일로 변경 * feat: Apple Login 엔드포인트 및 Data, Domain 계층 구현 * feat: 애플 로그인 구현 * feat: 애플 로그인 단순 취소 오류 제외 처리 * feat: 키체인 애플 유저 아이디 지원 * feat: 유저가 애플 로그인 탈퇴한 후에 앱에 돌아온 경우도 지원
- Loading branch information
1 parent
ac79535
commit c030ac4
Showing
16 changed files
with
322 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
iOS/FlipMate/FlipMate/Data/Network/AuthenticationEndpoints.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// GoogleLoginEndpoints.swift | ||
// FlipMate | ||
// | ||
// Created by 신민규 on 11/23/23. | ||
// | ||
|
||
import Foundation | ||
|
||
struct AuthenticationEndpoints { | ||
static func enterGoogleLogin(_ dto: GoogleAuthRequestDTO) -> EndPoint<AuthResponseDTO> { | ||
let encoder = JSONEncoder() | ||
let data = try? encoder.encode(dto) | ||
return EndPoint(baseURL: BaseURL.flipmateDomain, path: Paths.googleApp, method: .post, data: data) | ||
} | ||
|
||
static func enterAppleLogin(_ dto: AppleAuthRequestDTO) -> EndPoint<AuthResponseDTO> { | ||
let encoder = JSONEncoder() | ||
let data = try? encoder.encode(dto) | ||
return EndPoint(baseURL: BaseURL.flipmateDomain, path: Paths.appleApp, method: .post, data: data) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
iOS/FlipMate/FlipMate/Data/Network/DataMapping/LoginScene/AppleAuthRequestDTO.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// AppleAuthRequestDTO.swift | ||
// FlipMate | ||
// | ||
// Created by 권승용 on 12/14/23. | ||
// | ||
|
||
import Foundation | ||
|
||
struct AppleAuthRequestDTO: Encodable { | ||
let identityToken: String | ||
|
||
private enum CodingKeys: String, CodingKey { | ||
case identityToken = "identity_token" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
iOS/FlipMate/FlipMate/Data/Network/GoogleAuthEndpoints.swift
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.