Skip to content

Combination of RxSwift and Firebase Authentication

License

Notifications You must be signed in to change notification settings

alejandro-ulloa-dev/RxFirebaseAuth

 
 

Repository files navigation

RxFirebaseAuth

Combination of RxSwift and Firebase Authentication

GitHub release Language CocoaPods CocoaPodsDL

Usages

Auth.auth().rx.addStateDidChangeListener()
    .subscribe(onSuccess: { (auth, user) in
        // ...
    })
    .disposed(by: disposeBag)
Auth.auth().rx.signInAnonymously()
    .flatMap { UserModel.create(uid: $0.uid) }
    .subscribe(onSuccess: { user in
        // ...
    })
    .disposed(by: disposeBag)

Dependencies

  • RxSwift 5.x
  • Firebase Auth 6.x

Installation

CocoaPods

CocoaPods 1.4 or higher required.

RxFirebaseAuth is available through CocoaPods. To install it, simply add the following line to your Podfile:

# Firebase 6.x
pod 'RxFirebaseAuth', '~> 2.4'

# Firebase 5.x
pod 'RxFirebaseAuth', '~> 2.3'

# Firebase 4.x
pod 'RxFirebaseAuth', '~> 1.0'

and run pod install

Manually Install

Download all *.swift files and put your project.

Development

$ bundle install --path vendor/bundle
$ bundle exec pod install
$ open komerco.xcworkspace

Communication

  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.:muscle:

License

RxFirebaseAuth is under MIT license. See the LICENSE file for more info.

About

Combination of RxSwift and Firebase Authentication

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 90.7%
  • Ruby 5.8%
  • Objective-C 3.5%