[Vuejs]-Vue3. Use one var in different methods for auth

0👍

Fixed according the @EstusFlask recommendation.
‘userLogin’ func moved to mounted:

    async mounted() {
        await axios(config)
            .then((resp) => {
             validToken = resp.data.access_token
        });
    }

Leave a comment