diff options
| author | Henry Jameson <me@hjkos.com> | 2019-05-22 19:13:41 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2019-05-22 19:13:41 +0300 |
| commit | e7a2a7267dbd8a4ee3d266d22249459d028569d6 (patch) | |
| tree | 36bf31c489e26ae9adebdca8ee75f49c16688eb0 /src/components/oauth_callback | |
| parent | 233506f6c1b0b16ca62c557ae6eca4a585e28a2c (diff) | |
Proper clientId/secret/token caching, MastoAPI registration
Diffstat (limited to 'src/components/oauth_callback')
| -rw-r--r-- | src/components/oauth_callback/oauth_callback.js | 4 |
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' }) }) } } |
