chore: method signatures for tokenRequest method

This commit is contained in:
jamesgeorge007
2020-01-11 13:29:57 +05:30
parent a4b89a2152
commit daf214275b

View File

@@ -127,10 +127,15 @@ const pkceChallengeFromVerifier = async v => {
return base64urlencode(hashed); return base64urlencode(hashed);
}; };
//////////////////////////////////////////////////////////////////////
// OAUTH REQUEST // OAUTH REQUEST
// Initiate PKCE Auth Code flow when requested /**
* Initiate PKCE Auth Code flow when requested
*
* @param {Object} - The necessary params
* @returns {Void}
*/
const tokenRequest = async ({ const tokenRequest = async ({
oidcDiscoveryUrl, oidcDiscoveryUrl,
grantType, grantType,