fixed bug with deadlock appearing when auth redirection is performed during page transition
Fix api
Code style fix