aboutsummaryrefslogtreecommitdiff
path: root/src/components/oauth_callback/oauth_callback.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2019-06-16 11:18:21 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2019-06-16 11:18:21 +0000
commit1db3c785d805bfe1e7bb09f2d85875448cb03f9a (patch)
treefe756a5a3d9271966e9585166fa2c0ec9e372a4e /src/components/oauth_callback/oauth_callback.js
parent1fc460a7a518f9a33e5b453070dc57e9e463fda1 (diff)
parentacbeea59ff196c16e7992c80e56a638ce3a623b6 (diff)
Merge branch 'masto-register-app-secret' into 'develop'
Proper clientId/secret/token caching, MastoAPI registration Closes #554 See merge request pleroma/pleroma-fe!806
Diffstat (limited to 'src/components/oauth_callback/oauth_callback.js')
-rw-r--r--src/components/oauth_callback/oauth_callback.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/oauth_callback/oauth_callback.js b/src/components/oauth_callback/oauth_callback.js
index e3d45ee1..2c6ca235 100644
--- a/src/components/oauth_callback/oauth_callback.js
+++ b/src/components/oauth_callback/oauth_callback.js
@@ -4,14 +4,16 @@ const oac = {
props: ['code'],
mounted () {
if (this.code) {
+ const { clientId } = this.$store.state.oauth
+
oauth.getToken({
- app: this.$store.state.oauth,
+ clientId,
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' })
})
}
}