Skip to content

BE: fix current user

  • we want AuthService.currentUser to return the User entity of the user logged in
  • when i print it out it prints out block[Function2<kotlinx.coroutines.channels.ProducerScope<? super com.example.lotus.entites.User>, kotlin.coroutines.Continuation<? super kotlin.Unit>, java.lang.Object>] -> CallbackFlowBuilder[capacity=-2] , instead of the actual user entity
  • need this to get user info for the profile page