Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Code change with Webpack5 #50

@ishita-kothari

Description

@ishita-kothari

Hello Team,

The code with this repo was working as expected with webpack lower than 5 but when we updated the webpack version, it is throwing error with createPKCECodes() function.

Error:
ncaught (in promise) TypeError: (0 , crypto__WEBPACK_IMPORTED_MODULE_1__.randomBytes) is not a function
at createPKCECodes (pkce.ts:22:1)
at AuthService.authorize (AuthService.ts:176:1)
at _callee$ (authInterceptor.jsx:9:1)
at tryCatch (runtime.js:63:1)
at Generator.invoke [as _invoke] (runtime.js:294:1)
at Generator.next (runtime.js:119:1)
at asyncGeneratorStep (axiosHelper.js:20:1)
at _next (axiosHelper.js:20:1)
at axiosHelper.js:20:1
at new Promise ()

It would be really helpful if someone can suggest some solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions