From 8a32731e4d3772e79b3de35185de3454663be52d Mon Sep 17 00:00:00 2001
From: taehoon
Date: Wed, 19 Jun 2019 23:20:14 -0400
Subject: use clientSecret in login flow
---
src/components/oauth_callback/oauth_callback.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
(limited to 'src/components/oauth_callback/oauth_callback.js')
diff --git a/src/components/oauth_callback/oauth_callback.js b/src/components/oauth_callback/oauth_callback.js
index 2c6ca235..a3c7b7f9 100644
--- a/src/components/oauth_callback/oauth_callback.js
+++ b/src/components/oauth_callback/oauth_callback.js
@@ -4,10 +4,11 @@ const oac = {
props: ['code'],
mounted () {
if (this.code) {
- const { clientId } = this.$store.state.oauth
+ const { clientId, clientSecret } = this.$store.state.oauth
oauth.getToken({
clientId,
+ clientSecret,
instance: this.$store.state.instance.server,
code: this.code
}).then((result) => {
--
cgit v1.2.3-70-g09d2