Registration was happening from whatever scope invoked the function.
Though the impact is not huge, the entire process is meant to happen in
the background, even if called from the main thread.
Also fixed a bug where registration would happen before user is even
logged in.
Registration was happening from whatever scope invoked the function. Though the impact is not huge, the entire process is meant to happen in the background, even if called from the main thread.
Also fixed a bug where registration would happen before user is even logged in.