diff --git a/src/utils/auth.ts b/src/utils/auth.ts index b0b4825..0cadd85 100644 --- a/src/utils/auth.ts +++ b/src/utils/auth.ts @@ -9,6 +9,7 @@ function getAuthRoute(authRoute: string, nextRoute: string): string { }api/${authRoute}?next_url=${encodeURIComponent(`${next}`)}` } +// This function to decode the flask cookie and have the user information like username function decodingFlaskCookie(cookie: string): string { const cookieFormatted = cookie .split('.')[1] diff --git a/src/views/MySequencesView.vue b/src/views/MySequencesView.vue index 1c7ebc7..5ab4f82 100644 --- a/src/views/MySequencesView.vue +++ b/src/views/MySequencesView.vue @@ -308,8 +308,7 @@ const getUserId = computed(() => cookies.get('user_id')) onMounted(async () => { isLoading.value = true try { - const { data } = await axios.get('api/users/me/collection?limit=1') - console.log(data) + const { data } = await axios.get('api/users/me/collection') collectionBbox.value = data.extent.spatial.bbox[0] userSequences.value = getRelChild(data.links) isLoading.value = false