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

Can i use this package for react js. #51

Open
latheesh08 opened this issue Oct 26, 2018 · 3 comments
Open

Can i use this package for react js. #51

latheesh08 opened this issue Oct 26, 2018 · 3 comments

Comments

@latheesh08
Copy link

Hi there,

I wish to use this package for my react js project , Did it will work can any one have solution please ping me. thank you.

@sibelius
Copy link
Contributor

you can use this package instead https://github.com/dialogflow/dialogflow-javascript-client

@spoeck
Copy link
Member

spoeck commented Oct 29, 2018

Unfortunately, this package is only for React-Native. The problem is the authentication for V2: You can't get the token in the browser because of missing CORS headers. We solve this problem by using the node-js sdk in a Google Serverless Function.

@sibelius I'm not 100% sure but I think your suggested lib works with V1 only

@latheesh08
Copy link
Author

you can use this package instead https://github.com/dialogflow/dialogflow-javascript-client

it doesn't supports v2..

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

3 participants