From 607e4929520058fbb3cb275fb885e962e6c1cd0c Mon Sep 17 00:00:00 2001 From: Agate Date: Wed, 19 Aug 2020 19:51:11 +0200 Subject: [PATCH] UI to access / refresh access token --- front/src/components/auth/ApplicationEdit.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/front/src/components/auth/ApplicationEdit.vue b/front/src/components/auth/ApplicationEdit.vue index 2b90d2e85..b4a0b3735 100644 --- a/front/src/components/auth/ApplicationEdit.vue +++ b/front/src/components/auth/ApplicationEdit.vue @@ -26,6 +26,14 @@ +
+ + + + + Regenerate token + +

Edit application @@ -68,6 +76,12 @@ export default { self.errors = error.backendErrors }) }, + async refreshToken () { + self.isLoading = true + let response = await axios.post(`oauth/apps/${this.id}/refresh-token`) + this.application = response.data + self.isLoading = false + } }, computed: { labels() {