$auth - where is this defined and how?


#1

I’m reviewing the code for the Vue.js sample application; the sample is very clear and it’s great that it’s following a standard vue.js sample. Allows me to compare the before and after ‘okta-enabled’ style.

(vue.js is still relatively new tech for me).

One thing that is confusing me however - is the variable $auth… where exactly is this defined?
Is this a standard Vue.js element or something else.

So far my not turned up a reference expaining this…

UPDATE:
Located it within the okta-vue module and the documentation at https://www.npmjs.com/package/@okta/okta-vue

Can I suggest an update to the example to include that reference? Cheers!


#2

Thanks @mbwhite! We will update the example to include the reference.
You can take a look at the source code of the okta-vue library here - https://github.com/okta/okta-oidc-js/blob/master/packages/okta-vue/src/Auth.js