Skip to content
New issue

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

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

Already on GitHub? # to your account

Cannot read property 'uid' of null #251

Closed
mhevery opened this issue Jun 20, 2016 · 0 comments
Closed

Cannot read property 'uid' of null #251

mhevery opened this issue Jun 20, 2016 · 0 comments
Assignees
Milestone

Comments

@mhevery
Copy link

mhevery commented Jun 20, 2016

function authDataToAuthState(authData, providerData) {
    var uid = authData.uid, providerId = authData.providerData[0].providerId; <<<<<<<<<<<<
    var authState = { auth: authData, uid: uid, provider: null };
EXCEPTION: Error: Uncaught (in promise): EXCEPTION: Error in :0:0
ORIGINAL EXCEPTION: TypeError: Cannot read property 'uid' of null
ORIGINAL STACKTRACE:
TypeError: Cannot read property 'uid' of null
    at Object.authDataToAuthState (http://localhost:4200/vendor/angularfire2/providers/auth_backend.js:30:23)
    at FirebaseSdkAuthBackend.getAuth (http://localhost:4200/vendor/angularfire2/providers/firebase_sdk_auth_backend.js:40:31)
    at AngularFireAuth.getAuth (http://localhost:4200/vendor/angularfire2/providers/auth.js:121:34)
    at new PeriscopeAppComponent (http://localhost:4200/app/periscope.component.js:32:34)
    at DebugAppView._View_PeriscopeAppComponent_Host0.createInternal (PeriscopeAppComponent_Host.template.js:112:38)
    at DebugAppView.AppView.create (http://localhost:4200/vendor/@angular/core/src/linker/view.js:87:21)
    at DebugAppView.create (http://localhost:4200/vendor/@angular/core/src/linker/view.js:299:44)
    at ComponentFactory.create (http://localhost:4200/vendor/@angular/core/src/linker/component_factory.js:147:36)
    at eval (http://localhost:4200/vendor/@angular/core/src/application_ref.js:366:44)
    at eval (http://localhost:4200/vendor/@angular/core/src/application_ref.js:344:26)
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants