Access $auth0 object in the Vue router

Hi @katerina.chinnappan ,

Could you kindly check the answer given by @steve.hobbs here? - The prototype this.$auth in Vue main.js always null - #4 by steve.hobbs it could be related to your question.

I’m not an expert in JS so I’m not sure your use case on router.beforeEach logic. Could you kindly explain a bit more about it? aren’t you able to achieve the same results using the authWrapper.js and authGuard.js examples given in the Vue Quickstart?

Thank you!

1 Like