Latest 2.0
Homepage https://github.com/sgr-ksmt/RxFirebaseAuth
License MIT
Platforms ios 9.0, requires ARC
Dependencies Firebase/Auth, RxSwift
Authors

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 4.x
  • Firebase Auth 5.x (RxFirebaseAuth v1.x: Firebase Auth 4.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 5.x
pod 'RxFirebaseAuth', '~> 2.0'

# 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.

Latest podspec

{
    "name": "RxFirebaseAuth",
    "version": "2.0",
    "summary": "Combination of RxSwift and Firebase/Auth",
    "homepage": "https://github.com/sgr-ksmt/RxFirebaseAuth",
    "license": "MIT",
    "authors": {
        "Suguru Kishimoto": "[email protected]"
    },
    "source": {
        "git": "https://github.com/sgr-ksmt/RxFirebaseAuth.git",
        "tag": "2.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "requires_arc": true,
    "source_files": "Sources/**/*",
    "static_framework": true,
    "dependencies": {
        "Firebase/Auth": [
            "~> 5.0"
        ],
        "RxSwift": [
            "~> 4.0"
        ]
    }
}

Pin It on Pinterest

Share This