https://github.com/rommansabbir/firebaseotp-android
https://github.com/rommansabbir/firebaseotp-android
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rommansabbir/firebaseotp-android
- Owner: rommansabbir
- Created: 2019-03-23T20:09:56.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-03T18:02:18.000Z (about 6 years ago)
- Last Synced: 2025-01-30T15:16:54.166Z (4 months ago)
- Language: Kotlin
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/)