본문 바로가기

멋있게걷는방법

검색하기
멋있게걷는방법
프로필사진 도현D

  • 분류 전체보기 (15)
    • iOS (11)
    • Tuist (3)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/09   »
일 월 화 수 목 금 토
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
Tags
  • Tuist
  • ios
  • rc
  • AppStore
  • arc
  • Swift
  • HIG
  • garbage collection
  • Xcode
  • human interface guidelines
  • 회고
  • playground
  • alamofire
  • HealthKit
  • fetchSignInMethods
  • authentication
  • UITest
  • content-type
  • FlexLayout
  • App Connect
  • retain cycle
  • SPM
  • Firebase
  • Automatic Reference Count
  • Github-Action
  • layoutSubviews
  • Nan
  • Tuist-Action
  • pagination
  • YGEnums.h
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록authentication (1)

멋있게걷는방법

[Swift] firebase - 이메일 중복 검사

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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바