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

#node-web-compat could not be found within the project or in these directories #135

Closed
omartehsin1 opened this issue Aug 14, 2023 · 1 comment
Labels
question Further information is requested

Comments

@omartehsin1
Copy link

omartehsin1 commented Aug 14, 2023

Question
Error in my React Native project when trying to use aws-jwt-verify. I'm aware there is a potential solution from #66, but it is not working for me.

Versions
Which version of aws-jwt-verify are you using?
=> "4.0.0"

Just for reference, I did try doing the following:

moduleNameMapper: { '#node-web-compat': "./node-web-compat-node.js", }

But this has not worked. Any help would be greatly appreciated.

@omartehsin1 omartehsin1 added the question Further information is requested label Aug 14, 2023
@ottokruse
Copy link
Contributor

Thanks for your interest in this library.

Alas we don't support React Native. There is more to it than just this issue that you're filing now (RN is basically a totally different JavaScript environment that doesn't support a lot of things you have in NodeJS and web)

Read the comments here to get an idea: #66 (comment)

What's your use case for using this lib in react native? Why do you want to verify JWTs on the client? Would be great to understand the need, so we might potentially consider doing work for supporting RN

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

No branches or pull requests

2 participants