An open API service indexing awesome lists of open source software.

https://github.com/rommansabbir/firebaseotp-android


https://github.com/rommansabbir/firebaseotp-android

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# FirebaseOTP-Android

## Documentation

### Installation
---
Step 1. Add the JitPack repository to your build file

```gradle
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
```

Step 2. Add the dependency

```gradle
dependencies {
implementation 'com.github.rommansabbir:FirebaseOTP-Android:Tag'
}
```

---

### Version available

| Releases
| ------------- |
| v1.1 |
| v1.0 |

# Usages

```kotlin
class MainActivity : AppCompatActivity() {
.....................................................
.....................................................
FirebaseOTP.verify(mAuth, phoneNumber, object : FirebaseOTPCallback {
override fun onCodeSent() {
//TODO Implement your logic here
}

override fun onVerificationFailed() {
//TODO Implement your logic here
}

override fun onVerificationSuccess() {
//TODO Implement your logic here
}

})

....................................................
....................................................

//To verify the code
FirebaseOTP.verifyOTP(code)

```

### Contact me
[Portfolio](https://www.rommansabbir.com/) | [LinkedIn](https://www.linkedin.com/in/rommansabbir/) | [Twitter](https://www.twitter.com/itzrommansabbir/) | [Facebook](https://www.facebook.com/itzrommansabbir/)