UNPKG

@websanova/vue-auth

Version:

A simple light-weight authentication library for Vue.js

15 lines (12 loc) 393 B
export default { request: function (req, token) { this.drivers.http.setHeaders.call(this, req, { Authorization: token }); }, response: function (res) { var headers = this.drivers.http.getHeaders.call(this, res), token = headers.Authorization || headers.authorization; return token; } };