Write OAuth token to file during setup