Skip to content

getRedirectResult() always returns null (AF7+FB9) #3208

Open
@capancheta

Description

@capancheta

Version info

Angular: 13.1.2

Firebase: 9.6.3

AngularFire: 7.2.0 / 7.3.0

How to reproduce these conditions

on my ngInit():

getRedirectResult().then(result => { console.log(result)})

Debug output

i always get null.

i tried using the /compat/auth, i get

{result : { credentials: null, user: null }}

Expected behavior

results should contain credentials and user.

Actual behavior

no results at all.
Works properly in AF 6.1.4 + FB 8.2.1. Encountered after upgrade.

onAuthStageChanged() works; it detects the user correctly. Problem is, There is a subscription to auth,state already running on a different module (which i am prohibited to modify). Subscribing to onAuthStageChanged() creates some sort of pseudo-deadlock (sometimes it resolves, sometimes it doesnt).

My temp workaround is to use signInWithPopup() but that disables mobile compatibility.
Tips on overcoming this are highly appreciated. Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions