From e1423033a6ee04050a4a8c438ebbdfff576128a1 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Sat, 11 Jan 2020 13:31:49 +0530 Subject: [PATCH] chore: method signatures for oauthRedirect method --- assets/js/oauth.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/assets/js/oauth.js b/assets/js/oauth.js index 6e00a21c6..cfe3d5d15 100644 --- a/assets/js/oauth.js +++ b/assets/js/oauth.js @@ -185,11 +185,15 @@ const tokenRequest = async ({ window.location = buildUrl(); }; -////////////////////////////////////////////////////////////////////// // OAUTH REDIRECT HANDLING -// Handle the redirect back from the authorization server and -// get an access token from the token endpoint +/** + * Handle the redirect back from the authorization server and + * get an access token from the token endpoint + * + * @returns {Object} + */ + const oauthRedirect = async () => { let tokenResponse = ""; let q = parseQueryString(window.location.search.substring(1));