export currentUser to browser side