app/src/main/java/com/github/gogetters/letsgo/database/Authentication.kt
package com.github.gogetters.letsgo.database
import com.google.firebase.auth.FirebaseUser
import com.google.firebase.auth.ktx.auth
import com.google.firebase.ktx.Firebase
object Authentication {
private val auth = Firebase.auth
fun getCurrentUser(): FirebaseUser? {
return auth.currentUser
}
fun signOut() {
auth.signOut()
}
fun getUid(): String? {
return auth.uid
}
}