From daf214275b723da34b5edae0e6a140502d850179 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Sat, 11 Jan 2020 13:29:57 +0530 Subject: [PATCH] chore: method signatures for tokenRequest method --- assets/js/oauth.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/assets/js/oauth.js b/assets/js/oauth.js index fdbe1c7f7..784f6baea 100644 --- a/assets/js/oauth.js +++ b/assets/js/oauth.js @@ -127,10 +127,15 @@ const pkceChallengeFromVerifier = async v => { return base64urlencode(hashed); }; -////////////////////////////////////////////////////////////////////// // 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 ({ oidcDiscoveryUrl, grantType,