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,