@websanova/vue-auth
Advanced tools
Comparing version 3.1.1-beta to 3.1.2-beta
@@ -17,3 +17,3 @@ { | ||
"version": "3.1.1-beta", | ||
"version": "3.1.2-beta", | ||
@@ -20,0 +20,0 @@ "repository": { |
@@ -483,3 +483,3 @@ import * as __utils from './lib/utils.js'; | ||
Auth.prototype.user = function (data) { | ||
if (data) { | ||
if (data !== undefined) { | ||
_processFetch(data); | ||
@@ -506,6 +506,11 @@ } | ||
Auth.prototype.token = function (name, token, expires) { | ||
if (token) { | ||
expires = (expires === true || expires === false) ? expires : __token.get.call(__auth, __auth.options.staySignedInKey); | ||
if (token !== undefined) { | ||
if (token === null) { | ||
__token.remove.call(__auth, name); | ||
} | ||
else { | ||
expires = (expires === true || expires === false) ? expires : __token.get.call(__auth, __auth.options.staySignedInKey); | ||
__token.set.call(__auth, name, token, expires); | ||
__token.set.call(__auth, name, token, expires); | ||
} | ||
} | ||
@@ -512,0 +517,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83481
1327