Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Tuist
- arc
- content-type
- Firebase
- layoutSubviews
- playground
- AppStore
- HIG
- Automatic Reference Count
- App Connect
- YGEnums.h
- alamofire
- Tuist-Action
- human interface guidelines
- rc
- fetchSignInMethods
- ios
- Xcode
- Nan
- pagination
- HealthKit
- Github-Action
- authentication
- UITest
- FlexLayout
- Swift
- 회고
- retain cycle
- SPM
- garbage collection
Archives
- Today
- Total
목록authentication (1)
멋있게걷는방법

firebase에서 이메일 중복을 검사하는 메서는 따로 없는 것 같더라고요.. 그래서, 이렇게 해봤습니다. 먼저 FirebaseAuth를 import 해야겠죠? 그다음 아래와 같은 코드를 작성합니다. forEmail에 검사하고 싶은 email(String type)을 넣습니다. Auth.auth().fetchSignInMethods(forEmail: "test_email") { arg, error in if let arg = arg { print("등록됨") } else { print("등록 안 됨") } } Authentication에 등록된 이메일이라면 if, 등록되지 않았다면 (사용가능) else가 실행됩니다. arg를 출력해 보면 - 등록된 이메일이 아니다? = nil - 등록된 이메일이다? = ..
iOS
2023. 4. 12. 12:04