Authentication works

Waiting for Dan’s response on app lifecycle.