Custom authentication race condition - switching environments issue

A post was split to a new topic: Authenticate users in a public app