Skip to content

Database permission_denied after linking a provider (linkWithPopup) #230

@khammami

Description

@khammami

[REQUIRED] Describe your environment

  • Operating System version: Windows 10 Chrome Version 63.0.3236.0 (Official Build) dev (64-bit)
  • Firebase SDK version: 4.5.1
  • Firebase Product: database, auth

[REQUIRED] Describe your environment

database write permission denied after linking other providers with a popup. updates in the same page before works as intended but after linking an other provider I get a warning

it used to work fine before updating js sdk

util.js:189 FIREBASE WARNING: update at /users/xxxxxxxx/data failed: permission_denied 
t.warn @ util.js:189
(anonymous) @ Repo.js:309
(anonymous) @ PersistentConnection.js:411
t.Tt @ PersistentConnection.js:444
e.Tt @ Connection.js:262
e.an @ Connection.js:256
(anonymous) @ Connection.js:157
t.Fn @ WebSocketConnection.js:197
t.handleIncomingFrame @ WebSocketConnection.js:247
mySock.onmessage @ WebSocketConnection.js:144
15:33:47.264 Repo.js:510 Uncaught (in promise) Error: PERMISSION_DENIED: Permission denied
    at Repo.js:510
    at Object.t.exceptionGuard (util.js:556)
    at e.callOnCompleteCallback (Repo.js:501)
    at Repo.js:314
    at PersistentConnection.js:411
    at t.Tt (PersistentConnection.js:444)
    at e.Tt (Connection.js:262)
    at e.an (Connection.js:256)
    at t.onMessage (Connection.js:157)
    at t.Fn (WebSocketConnection.js:197)

Steps to reproduce:

database rule ".write": "$uid === auth.uid"
main provider is Google to signin/ create an account in my app
try to write data to the current user ref after linking another provider with popup

=> https://local-guides-directory.firebaseapp.com/account

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions