Merge pull request #78 from SELab1/authentication
Disable anonymous user
This commit is contained in:
		
						commit
						bd78d74708
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -1,3 +1,3 @@ | ||||||
| package be.ugent.sel.studeez.data.local.models | package be.ugent.sel.studeez.data.local.models | ||||||
| 
 | 
 | ||||||
| data class User(val id: String = "", val isAnonymous: Boolean = true) | data class User(val id: String = "") | ||||||
|  |  | ||||||
|  | @ -39,7 +39,7 @@ class FirebaseAccountDAO @Inject constructor( | ||||||
|         get() = callbackFlow { |         get() = callbackFlow { | ||||||
|             val listener = |             val listener = | ||||||
|                 FirebaseAuth.AuthStateListener { auth -> |                 FirebaseAuth.AuthStateListener { auth -> | ||||||
|                     this.trySend(auth.currentUser?.let { User(it.uid, it.isAnonymous) } ?: User()) |                     this.trySend(auth.currentUser?.let { User(it.uid) } ?: User()) | ||||||
|                 } |                 } | ||||||
|             auth.addAuthStateListener(listener) |             auth.addAuthStateListener(listener) | ||||||
|             awaitClose { auth.removeAuthStateListener(listener) } |             awaitClose { auth.removeAuthStateListener(listener) } | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 GitHub Enterprise
							GitHub Enterprise