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));