From b13abe51bf7c536a468415ee525d0f9a38a8212e Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Sat, 30 Dec 2023 19:27:37 -0500 Subject: [PATCH] Display token expiration times --- app/views/qbo/_settings.html.erb | 6 ++++-- config/locales/en.yml | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/qbo/_settings.html.erb b/app/views/qbo/_settings.html.erb index 5a3a733..79c64fd 100644 --- a/app/views/qbo/_settings.html.erb +++ b/app/views/qbo/_settings.html.erb @@ -58,8 +58,10 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI - <%=t(:label_oauth_expires)%> - <%= if Qbo.exists? then Qbo.first.expire end %> + <%=t(:label_oauth_expires)%> + <%= if Qbo.exists? then Qbo.first.oauth2_access_token_expires_at end %> + <%=t(:label_oauth2_refresh_token_expires_at)%> + <%= if Qbo.exists? then Qbo.first.oauth2_refresh_token_expires_at end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 5543f76..8001ac6 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -87,4 +87,5 @@ en: label_billing_error: "Cannot bill without a customer assigned" label_qbo_sync_success: "Successfully synced to Quickbooks" label_hours: "Hours" + label_oauth2_refresh_token_expires_at: "Refresh Token Expires At" \ No newline at end of file