sunabozu / vue-feathers

Integration with the Feathers framework for Vue.js
MIT License
78 stars 9 forks source link

Example of authentication #3

Closed 1beb closed 3 years ago

1beb commented 7 years ago

Could you provide an example of front-end authentication using vue-feathers?

pixelspring commented 6 years ago

If it's any help to anyone, you can do auth with the $feathers property:

doLogin: function() {
      this.$feathers
        .authenticate({
          strategy: "local",
          email: "test@example.com",
          password: "hunter1"
        })
        .then(response => {
          // Login success, do something
        })
        .catch(e => {
          // Login Fail, do something
        });