cannot read property 'configureProvider' of undefined
See original GitHub issueHi, as I made reference to here https://github.com/fullstackreact/react-native-oauth/issues/14 I’m having an issue with the oath on Android. Do I need to configure the manager differently based on platform? At present my code looks like this
const manager = new OAuthManager('MyAPp');
const config = {
facebook: {
client_id: 'MY_CLIENT_ID',
client_secret: 'MY_CLIENT_SECRET',
},
};
manager.configure(config);
It works amazingly (Thanks @auser !!) on ios, but in android everything about the manager is then coming up as undefined. I removed all my promises handling etc to just strip it back to console logging the manager variable but I was getting 'cannot read property ‘configureProvider’ of undefined and it wouldn’t go any further.
Is this a bug or is this just user error? I (think) I;ve read the docs quite extensively and everything seems as it’s supposed to be? Cheers
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:28 (6 by maintainers)
Top Results From Across the Web
Cannot update value in Kendo-grid - cannot read 'data ...
js:13 Uncaught TypeError: Cannot read property 'data' of undefined". What Did I wrong? < script > $(document).ready(function() ...
Read more >nrwl-nx/community - Gitter
Ive added @nrwl/node but when i run nx g @nrwl/node:application appname all i get is Cannot read property 'types' of undefined . is...
Read more >Models not working in Loopback Passport Module
TypeError: Cannot read property 'dataSource' of undefined at Array. (model.services.js:179) at Object.forEach (angular.js:323) at ...
Read more >Configure Provider Search for Users - Salesforce Help
Uncaught TypeError: Cannot read properties of undefined (reading '$a') throws at ...
Read more >https://www.jprog.com/wiki/GetFile.aspx?File=%2FDo...
17, 4164, A demogrpahics tab custom control set activated for Add Client ... in Form Designer an error occurs, "Cannot read property '0'...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have the same problem in iOS.
Hi @auser , I’m having the same “configureProvider is undefined” issue on iOS. I tried the react-native unlink and react-native link, as well, and that didn’t resolve the issue. I took a look at the set up you have in the demo link you referenced above and nothing is glaringly different. Here’s my set up: