aboutsummaryrefslogtreecommitdiff
path: root/src/components/oauth_callback
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/oauth_callback')
-rw-r--r--src/components/oauth_callback/oauth_callback.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/oauth_callback/oauth_callback.js b/src/components/oauth_callback/oauth_callback.js
index e3d45ee1..48ddd10d 100644
--- a/src/components/oauth_callback/oauth_callback.js
+++ b/src/components/oauth_callback/oauth_callback.js
@@ -5,13 +5,13 @@ const oac = {
mounted () {
if (this.code) {
oauth.getToken({
- app: this.$store.state.oauth,
+ ...this.$store.state.oauth,
instance: this.$store.state.instance.server,
code: this.code
}).then((result) => {
this.$store.commit('setToken', result.access_token)
this.$store.dispatch('loginUser', result.access_token)
- this.$router.push({name: 'friends'})
+ this.$router.push({ name: 'friends' })
})
}
}