What is $auth in js? is there any good way to verify the connection if you don't pass $auth?

js$auth$auth
 const params = new URLSearchParams();
      params.append("name", Base64.encode(form.username));
      params.append("password", Base64.encode(form.password));
      await $auth.loginWith("local", { params });
      loginWith$auth
May.27,2021

this is a private method written by you. You can go to the entry file to look for the $auth introduced from that file, and then go to the corresponding file to see the source code. The source code of loginWith must also be in it. Of course, if you don't bother to do console.log ($auth.loginWith) can also be seen on the console, you just don't know if it's confused after compression.

Menu