Skip to content

[Bug] Phone Auth timeout is being called immediately after code sent even though phoneAuthTimeoutMs is set to 60 * 1000 #968

Open
@adityathoutam

Description

@adityathoutam

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2020.2.6f1
  • Firebase Unity SDK version: 7.1.0
  • Source you installed the SDK: UPM
  • Problematic Firebase Component: Auth
  • Other Firebase Components in use: Auth
  • Additional SDKs you are using: Nothing
  • Platform you are using the Unity editor on: Mac
  • Platform you are targeting: Android
  • Scripting Runtime: IL2CPP

[REQUIRED] Please describe the issue here:

(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)
Phone Auth is not waiting for code auto retrieval, timeout is being called almost immediately even if timeout is set to 60 * 1000

2021-02-25 13:29:13.670 9331 19612 Info Unity Phone Auth, code sent
2021-02-25 13:29:13.670 9331 19612 Info Unity Firebase.Sample.Auth.UIHandler:DebugLog(String)
2021-02-25 13:29:13.670 9331 19612 Info Unity Firebase.Auth.CodeSent:Invoke(String, ForceResendingToken)
2021-02-25 13:29:13.670 9331 19612 Info Unity Firebase.Auth.<CodeSentHandler>c__AnonStorey2:<>m__0()
2021-02-25 13:29:13.670 9331 19612 Info Unity System.Action:Invoke()
2021-02-25 13:29:13.670 9331 19612 Info Unity Firebase.ExceptionAggregator:Wrap(Action)
2021-02-25 13:29:13.670 9331 19612 Info Unity Firebase.AppUtilPINVOKE:PollCallbacks()
2021-02-25 13:29:13.670 9331 19612 Info Unity Firebase.AppUtil:PollCallbacks()
2021-02-25 13:29:13.670 9331 19612 Info Unity Firebase.Platform.FirebaseHandler:Update()
2021-02-25 13:29:13.670 9331 19612 Info Unity 
2021-02-25 13:29:14.939 9331 20322 Warn FirebaseAuth [SmsRetrieverHelper] Timed out waiting for SMS.
2021-02-25 13:29:14.950 9331 19612 Info Unity Phone Auth, auto-verification timed out
2021-02-25 13:29:14.950 9331 19612 Info Unity Firebase.Sample.Auth.UIHandler:DebugLog(String)
2021-02-25 13:29:14.950 9331 19612 Info Unity Firebase.Auth.CodeAutoRetrievalTimeOut:Invoke(String)
2021-02-25 13:29:14.950 9331 19612 Info Unity Firebase.Auth.<TimeOutHandler>c__AnonStorey3:<>m__0()
2021-02-25 13:29:14.950 9331 19612 Info Unity System.Action:Invoke()
2021-02-25 13:29:14.950 9331 19612 Info Unity Firebase.ExceptionAggregator:Wrap(Action)
2021-02-25 13:29:14.950 9331 19612 Info Unity Firebase.AppUtilPINVOKE:PollCallbacks()
2021-02-25 13:29:14.950 9331 19612 Info Unity Firebase.AppUtil:PollCallbacks()
2021-02-25 13:29:14.950 9331 19612 Info Unity Firebase.Platform.FirebaseHandler:Update()
2021-02-25 13:29:14.950 9331 19612 Info Unity 

Steps to reproduce:

Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)?
Yes
What's the issue repro rate? (eg 100%, 1/5 etc)
100%
What happened? How can we make the problem occur?
Check for Phone Auth and see that timeout is ignored everytime

This could be a description, log/console output, etc.

If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.

Relevant Code:

// TODO(you): code here to reproduce the problem

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