Best way to customize handle redirect

Hello . Using VueJs SDK . Problem is the following .
My redirect url is example.com/callback , inside routes I have callback component which suppose to send user data to backend and check if user exists and log user in otherwise create new user and get back jwt from our backend application .
Problem is following , inside created/mounted cycle I can not reach auth0Client and so user properties .
this.$auth.auth0Client.
I have to do this hack

const interval = setInterval(async () => {
     count++;
     if (this.$auth.auth0Client) {
         clearInterval(interval);
         let loggedUser = await this.$auth.auth0Client.getUser();
         if(loggedUser){
             const email = loggedUser.email;
             const name = loggedUser.name;
             try{
                //backend logic
             }catch (e) {
                 console.log(e)
             }
         }
     } else {
         if (count > 80) {
             clearInterval(interval);
         }
     }
 }, 100)

My problem /question is how to handle this better as it seems not very logical and nice .
I want to send authenticated user data to our backend and do the rest there ,
Thanks