Update auth to handle refresh tokens

This commit is contained in:
advplyr 2025-07-01 11:33:51 -05:00
parent 67bab72783
commit d8cdb7073e
13 changed files with 828 additions and 141 deletions

View file

@ -1,5 +1,5 @@
export default function ({ $axios, store }) {
$axios.onRequest(config => {
$axios.onRequest((config) => {
console.log('[Axios] Making request to ' + config.url)
if (config.url.startsWith('http:') || config.url.startsWith('https:') || config.url.startsWith('capacitor:')) {
return
@ -26,7 +26,7 @@ export default function ({ $axios, store }) {
console.log('[Axios] Request out', config.url)
})
$axios.onError(error => {
$axios.onError((error) => {
console.error('Axios error code', error)
})
}
}