chore: method signatures for oauthRedirect method

This commit is contained in:
jamesgeorge007
2020-01-11 13:31:49 +05:30
parent dcd148e43b
commit e1423033a6

View File

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