Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verifier issue #15

Open
uday1kiran opened this issue Sep 11, 2023 · 3 comments
Open

verifier issue #15

uday1kiran opened this issue Sep 11, 2023 · 3 comments

Comments

@uday1kiran
Copy link

Getting this error

C:\test\ms-identity-node\app\auth\AuthProvider.js:132
                codeVerifier: req.session.pkceCodes.verifier,
                                                    ^

TypeError: Cannot read properties of undefined (reading 'verifier')
    at C:\test\ms-identity-node\app\auth\AuthProvider.js:132:53
    at Layer.handle [as handle_request] (C:\test\ms-identity-node\app\node_modules\express\lib\router\layer.js:95:5)
    at next (C:\test\ms-identity-node\app\node_modules\express\lib\router\route.js:144:13)
    at Route.dispatch (C:\test\ms-identity-node\app\node_modules\express\lib\router\route.js:114:3)
    at Layer.handle [as handle_request] (C:\test\ms-identity-node\app\node_modules\express\lib\router\layer.js:95:5)
    at C:\test\ms-identity-node\app\node_modules\express\lib\router\index.js:284:15
    at Function.process_params (C:\test\ms-identity-node\app\node_modules\express\lib\router\index.js:346:12)
    at next (C:\test\ms-identity-node\app\node_modules\express\lib\router\index.js:280:10)
    at Function.handle (C:\test\ms-identity-node\app\node_modules\express\lib\router\index.js:175:3)
    at router (C:\test\ms-identity-node\app\node_modules\express\lib\router\index.js:47:12)
@berk76
Copy link

berk76 commented Sep 15, 2023

Hi,
I am experiencing the same problem.

It looks like cryptoProvider returns verifier as undefined occasionally

const { verifier, challenge } = await this.cryptoProvider.generatePkceCodes();

@saeedalhamed
Copy link

Any suggestions to resolve that? we have a support ticket opened for it, please advise.

@uclnj
Copy link

uclnj commented Mar 7, 2024

I seem to have resolved the verifier issue as I have been using cookie-session with an app.use(...) but this example seems to build the application session using "cookie-parser." Swapping to cookie-parser and removing my app session cookie use resolved it.

Now to get it working on cookie-session instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants