Fixed a minor async bug

It returned redirectUri = ‘null’