Proper clientId/secret/token caching, MastoAPI registration

This commit is contained in:
Henry Jameson 2019-05-22 19:13:41 +03:00
commit e7a2a7267d
10 changed files with 138 additions and 92 deletions

View file

@ -5,9 +5,9 @@ const queryParams = (params) => {
}
const headers = (store) => {
const accessToken = store.state.oauth.token
const accessToken = store.getters.getToken()
if (accessToken) {
return {'Authorization': `Bearer ${accessToken}`}
return { 'Authorization': `Bearer ${accessToken}` }
} else {
return {}
}