NativeScript / NativeScript/firebase

[Auth] Multiple call on IOS and Android

Open
#178 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
62
Forks
53
Avg merge
8d 4h
Merged PRs (30d)
2

Description

Hi @NathanWalker and @triniwiz

I am facing a multiple call in firebase! IOS does 2 calls and android call 2 times !

  JS: Logged in to firebase
  JS: Logged in to firebase
  JS: Logged in to firebase
  JS: updateIdToken FROM app.ts > firebase()?.auth()?.addIdTokenChangeListener
  JS: updateIdToken FROM User.isLoggedIn
  JS: updateIdToken FROM User.isLoggedIn
  JS: updateIdToken FROM User.isLoggedIn
  JS: /v1/requests/users/token/refresh
  JS: /v1/requests/users/token/refresh
  JS: /v1/requests/users/token/refresh

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the repeated Firebase authentication calls on iOS and Android, then inspect the app.ts updateIdToken listener, User.isLoggedIn, and the /v1/requests/users/token/refresh requests. Done means one login event produces one token update and one refresh request on each platform.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, firebase, ios, typescript
Domain
authentication, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.