Final auth fix

This commit is contained in:
Jai A
2021-03-29 19:15:18 -07:00
parent 723e6dd13f
commit 1e0d118930
2 changed files with 10 additions and 18 deletions

View File

@@ -48,17 +48,9 @@ export default {
FollowIcon,
},
async asyncData(data) {
const config = {
headers: {
Authorization: data.$auth.getToken('local')
? data.$auth.getToken('local')
: '',
},
}
const res = await axios.get(
`https://api.modrinth.com/api/v1/user/${data.$auth.user.id}/follows`,
config
data.$auth.headers
)
const mods = (