sets up initial auth persistence