UNPKG

@websanova/vue-auth

Version:

A simple light-weight authentication library for Vue.js

7 lines (6 loc) 491 B
/*! * @websanova/vue-auth v4.2.1 * https://websanova.com/docs/vue-auth * Released under the MIT License. */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.VueAuth=e()}(this,function(){"use strict";return{request:function(t,e){this.drivers.http.setHeaders.call(this,t,{Authorization:e})},response:function(t){t=this.drivers.http.getHeaders.call(this,t);return t.Authorization||t.authorization}}});