 module.exports = React.createClass
   displayName: 'MainFooter'
 
+  getInitialState: ->
+    user: null
+
+  componentDidMount: ->
+    auth.listen 'change', @handleAuthChange
+    apiClient.listen 'change', @handleClientChange
+    @handleAuthChange()
+
+  componentWillUnmount: ->
+    auth.stopListening 'change', @handleAuthChange
+    apiClient.stopListening 'change', @handleClientChange
+
+  handleAuthChange: ->
+    auth.checkCurrent().then (user) =>
+      @setState {user}
+
+  handleClientChange: ->
+    @forceUpdate()
+
   render: ->
     <footer className="main-footer">
       <div className="centered-grid main-footer-flex">

        </div>
      </div>
    </footer>

Translate = require 'react-translate-component'
{Link} = require 'react-router'
ZooniverseLogoType = require './zooniverse-logotype'
auth = require '../api/auth'
apiClient = require '../api/client'

counterpart.registerTranslations 'en',
  footer:
    adminMode: 'Admin mode'
    discover:
      title: 'Projects'
      projectList: 'Projects'
