Skip to content

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

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

Merged
merged 1 commit into from
Apr 24, 2021

Conversation

KingDarBoja
Copy link
Contributor

@KingDarBoja KingDarBoja commented Apr 24, 2021

Checklist

Description

Updating the Auth documentation with the usage of DI tokens 🚀

Copy link
Member

@jamesdaniels jamesdaniels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks good.

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

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
Development

Successfully merging this pull request may close these issues.

4 participants