QUASAR: Fix some issues with auth function getting called more than once