whitewind664/sdp

View on GitHub
app/src/main/java/com/github/gogetters/letsgo/database/Authentication.kt

Summary

Maintainability
A
0 mins
Test Coverage
D
66%
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
    }
}