update file /cloud/auth.js