Closed peterphanouvong closed 2 weeks ago
The changes in this pull request involve a modification to the getIdTokenFactory
function located in src/session/getIdToken.js
. The update alters the invocation of the sessionManager
function to ensure that its promise is fully resolved before accessing the session item for the 'id_token'. This adjustment introduces an additional layer of awaiting, while the error handling mechanism remains unchanged.
File | Change Summary |
---|---|
src/session/getIdToken.js | Modified getIdTokenFactory to await sessionManager(req, res) before accessing getSessionItem('id_token') . Error handling remains unchanged. |
createKindeManagementAPIClient
function to use an awaited call for sessionManager(req, res)
, which is similar to the changes made in the getIdTokenFactory
function in the main PR.Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Explain your changes
getIdToken
bug wheregetSessionItem
wasn't being awaitedChecklist
🛟 If you need help, consider asking for advice over in the Kinde community.