Use localStorage to save accessToken and profile in cookie -- but still not works in function modules. Why?