The Wayback Machine - https://web.archive.org/web/20220322112938/https://github.com/angular/angularfire/pull/2809
Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

docs(auth): provide auth DI tokens documentation #2809

Merged
merged 1 commit into from Apr 24, 2021

Conversation

KingDarBoja
Copy link
Contributor

@KingDarBoja KingDarBoja commented Apr 24, 2021

Checklist

  • Issue number for this PR: #2663
  • Docs included?: yes
  • Test units included?: no
  • In a clean directory, yarn install, yarn test run successfully? yes

Description

Updating the Auth documentation with the usage of DI tokens 🚀

Copy link
Member

@jamesdaniels jamesdaniels left a comment

Thanks! Looks good.

@jamesdaniels jamesdaniels merged commit 8d69c9d into angular:master Apr 24, 2021
14 checks passed
@KingDarBoja KingDarBoja deleted the docs/auth-di-docs branch Apr 24, 2021
@conde2
Copy link

@conde2 conde2 commented May 1, 2021

@KingDarBoja Is is possible to dynamic change the language code ?

I have an async operation to fetch the language code from local storage, and I couldn't find a way to inject it async.

I've tried this, with no success

    this.angularFireAuth.languageCode = new Promise<string>(( resolve ) => {
      resolve("fr");
    });

My solution was do this:

(await this.angularFireAuth.app).auth().languageCode = language;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants