Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@okta/okta-vue

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@okta/okta-vue - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

5

bundles/okta-vue.cjs.js

@@ -137,3 +137,3 @@ 'use strict';

// customize user agent
oktaAuth._oktaUserAgent.addEnvironment({"name":"@okta/okta-vue","version":"5.1.0"}.name + "/" + {"name":"@okta/okta-vue","version":"5.1.0"}.version);
oktaAuth._oktaUserAgent.addEnvironment({"name":"@okta/okta-vue","version":"5.1.1"}.name + "/" + {"name":"@okta/okta-vue","version":"5.1.1"}.version);
}

@@ -217,3 +217,4 @@ else {

} catch (e) {
if (this.$auth.isInteractionRequiredError(e)) {
const isInteractionRequiredError = this.$auth.isInteractionRequiredError || this.$auth.idx.isInteractionRequiredError;
if (isInteractionRequiredError(e)) {
const { onAuthResume, onAuthRequired } = this.$auth.options;

@@ -220,0 +221,0 @@ const callbackFn = onAuthResume || onAuthRequired;

@@ -133,3 +133,3 @@ import { AuthSdkError, toRelativeUrl } from '@okta/okta-auth-js';

// customize user agent
oktaAuth._oktaUserAgent.addEnvironment({"name":"@okta/okta-vue","version":"5.1.0"}.name + "/" + {"name":"@okta/okta-vue","version":"5.1.0"}.version);
oktaAuth._oktaUserAgent.addEnvironment({"name":"@okta/okta-vue","version":"5.1.1"}.name + "/" + {"name":"@okta/okta-vue","version":"5.1.1"}.version);
}

@@ -213,3 +213,4 @@ else {

} catch (e) {
if (this.$auth.isInteractionRequiredError(e)) {
const isInteractionRequiredError = this.$auth.isInteractionRequiredError || this.$auth.idx.isInteractionRequiredError;
if (isInteractionRequiredError(e)) {
const { onAuthResume, onAuthRequired } = this.$auth.options;

@@ -216,0 +217,0 @@ const callbackFn = onAuthResume || onAuthRequired;

2

bundles/okta-vue.umd.js

@@ -26,3 +26,3 @@ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@okta/okta-auth-js"),require("compare-versions"),require("vue")):"function"==typeof define&&define.amd?define(["exports","@okta/okta-auth-js","compare-versions","vue"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).OktaVue={},t.OktaAuth,t.compareVersions,t.Vue)}(this,(function(t,e,n,r){"use strict";

* See the License for the specific language governing permissions and limitations under the License.
*/var i,u,s,c,h=function(t){return a(void 0,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return!t||t.isAuthenticated?[3,4]:(i.setOriginalUri(c),u?[4,u(i)]:[3,2]);case 1:return e.sent(),[3,4];case 2:return[4,i.signInWithRedirect()];case 3:e.sent(),e.label=4;case 4:return[2]}}))}))};var l={install:function(t,r){var c=this,h=void 0===r?{}:r,l=h.oktaAuth,f=h.onAuthRequired,d=h.onAuthResume;if(!l)throw new e.AuthSdkError("No oktaAuth instance passed to OktaVue.");if(i=l,u=f,l._oktaUserAgent){if(!n.compare(l._oktaUserAgent.getVersion(),"5.3.1",">="))throw new e.AuthSdkError("\n Passed in oktaAuth is not compatible with the SDK,\n minimum supported okta-auth-js version is 5.3.1.\n ");l._oktaUserAgent.addEnvironment("@okta/okta-vue/5.1.0")}else console.warn("_oktaUserAgent is not available on auth SDK instance. Please use okta-auth-js@^5.3.1 .");l.options.restoreOriginalUri||(l.options.restoreOriginalUri=function(t,n){return a(c,void 0,void 0,(function(){var t;return o(this,(function(r){return s&&n&&(t=e.toRelativeUrl(n,window.location.origin),s.replace({path:t})),[2]}))}))}),t.mixin({data:function(){return{authState:l.authStateManager.getAuthState()}},beforeCreate:function(){s=this.$router},created:function(){l.authStateManager.subscribe(this.$_oktaVue_handleAuthStateUpdate),l.token.isLoginRedirect()||l.start()},beforeUnmount:function(){l.authStateManager.unsubscribe(this.$_oktaVue_handleAuthStateUpdate),l.stop()},methods:{$_oktaVue_handleAuthStateUpdate:function(t){return a(this,void 0,void 0,(function(){return o(this,(function(e){return this.authState=Object.assign(this.authState||{},t),[2]}))}))}}}),Object.assign(l.options,{onAuthRequired:f,onAuthResume:d}),t.config.globalProperties.$auth=l}},f=r.defineComponent({name:"LoginCallback",data:()=>({error:null}),async beforeMount(){try{await this.$auth.handleLoginRedirect(),this.$auth.start()}catch(t){if(this.$auth.isInteractionRequiredError(t)){const{onAuthResume:t,onAuthRequired:e}=this.$auth.options,n=t||e;if(n)return void n(this.$auth)}this.error=t.toString()}},render(){return this.error}});f.__file="src/components/LoginCallback.vue",t.LoginCallback=f,t.default=l,t.navigationGuard=function(t){return a(void 0,void 0,void 0,(function(){var e;return o(this,(function(n){switch(n.label){case 0:return i.authStateManager.unsubscribe(h),t.matched.some((function(t){return t.meta.requiresAuth}))?(c=t.fullPath,i.authStateManager.subscribe(h),[4,i.isAuthenticated()]):[3,4];case 1:return n.sent()?[3,3]:(e=i.authStateManager.getAuthState(),[4,h(e)]);case 2:return n.sent(),[2,!1];case 3:case 4:return[2,!0]}}))}))},Object.defineProperty(t,"__esModule",{value:!0})}));
*/var i,u,s,c,h=function(t){return a(void 0,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return!t||t.isAuthenticated?[3,4]:(i.setOriginalUri(c),u?[4,u(i)]:[3,2]);case 1:return e.sent(),[3,4];case 2:return[4,i.signInWithRedirect()];case 3:e.sent(),e.label=4;case 4:return[2]}}))}))};var l={install:function(t,r){var c=this,h=void 0===r?{}:r,l=h.oktaAuth,f=h.onAuthRequired,d=h.onAuthResume;if(!l)throw new e.AuthSdkError("No oktaAuth instance passed to OktaVue.");if(i=l,u=f,l._oktaUserAgent){if(!n.compare(l._oktaUserAgent.getVersion(),"5.3.1",">="))throw new e.AuthSdkError("\n Passed in oktaAuth is not compatible with the SDK,\n minimum supported okta-auth-js version is 5.3.1.\n ");l._oktaUserAgent.addEnvironment("@okta/okta-vue/5.1.1")}else console.warn("_oktaUserAgent is not available on auth SDK instance. Please use okta-auth-js@^5.3.1 .");l.options.restoreOriginalUri||(l.options.restoreOriginalUri=function(t,n){return a(c,void 0,void 0,(function(){var t;return o(this,(function(r){return s&&n&&(t=e.toRelativeUrl(n,window.location.origin),s.replace({path:t})),[2]}))}))}),t.mixin({data:function(){return{authState:l.authStateManager.getAuthState()}},beforeCreate:function(){s=this.$router},created:function(){l.authStateManager.subscribe(this.$_oktaVue_handleAuthStateUpdate),l.token.isLoginRedirect()||l.start()},beforeUnmount:function(){l.authStateManager.unsubscribe(this.$_oktaVue_handleAuthStateUpdate),l.stop()},methods:{$_oktaVue_handleAuthStateUpdate:function(t){return a(this,void 0,void 0,(function(){return o(this,(function(e){return this.authState=Object.assign(this.authState||{},t),[2]}))}))}}}),Object.assign(l.options,{onAuthRequired:f,onAuthResume:d}),t.config.globalProperties.$auth=l}},f=r.defineComponent({name:"LoginCallback",data:()=>({error:null}),async beforeMount(){try{await this.$auth.handleLoginRedirect(),this.$auth.start()}catch(t){if((this.$auth.isInteractionRequiredError||this.$auth.idx.isInteractionRequiredError)(t)){const{onAuthResume:t,onAuthRequired:e}=this.$auth.options,n=t||e;if(n)return void n(this.$auth)}this.error=t.toString()}},render(){return this.error}});f.__file="src/components/LoginCallback.vue",t.LoginCallback=f,t.default=l,t.navigationGuard=function(t){return a(void 0,void 0,void 0,(function(){var e;return o(this,(function(n){switch(n.label){case 0:return i.authStateManager.unsubscribe(h),t.matched.some((function(t){return t.meta.requiresAuth}))?(c=t.fullPath,i.authStateManager.subscribe(h),[4,i.isAuthenticated()]):[3,4];case 1:return n.sent()?[3,3]:(e=i.authStateManager.getAuthState(),[4,h(e)]);case 2:return n.sent(),[2,!1];case 3:case 4:return[2,!0]}}))}))},Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=okta-vue.umd.js.map
[authState]: https://github.com/okta/okta-auth-js#authstatemanager
# 5.1.1
### Fixes
- [#86](https://github.com/okta/okta-vue/pull/86) Fixes okta-auth-js v6 compatibility issues:
- allows okta-auth-js v6 in peerDependencies
- uses available `isInteractionRequiredError` method in `LoginCallback` component
# 5.1.0

@@ -4,0 +12,0 @@

{
"private": false,
"name": "@okta/okta-vue",
"version": "5.1.0",
"version": "5.1.1",
"description": "Vue support for Okta",

@@ -47,3 +47,3 @@ "main": "bundles/okta-vue.cjs.js",

"@babel/preset-env": "^7.12.1",
"@okta/okta-auth-js": "^5.8.0",
"@okta/okta-auth-js": "^6.0.0",
"@rollup/plugin-babel": "^5.2.1",

@@ -112,3 +112,3 @@ "@rollup/plugin-commonjs": "^21.0.1",

"peerDependencies": {
"@okta/okta-auth-js": "^5.8.0",
"@okta/okta-auth-js": "^5.8.0 || ^6.0.0",
"vue": "^3.0.0",

@@ -118,6 +118,6 @@ "vue-router": "^4.0.3"

"okta": {
"commitSha": "4a5ebf637891b5b9e857facf6e1abbe6d72dcc0a",
"fullVersion": "5.1.0-g4a5ebf6",
"testedSha": "12215d1ac952b4afe8b1ed673204cd9d7070ccbd"
"commitSha": "965ad5b74900558febd55de6c1eaf4258bcae977",
"fullVersion": "5.1.1-g965ad5b",
"testedSha": "d01ab6b34f22fa403adb8a70cb42583548044e55"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc