Even though the function name is called "getUserToken", the actual function action is doing set. You perhaps wanna return the user token and perform the set action in the caller function.