Skip to content

There's a way for change dinamically UserAuth params? #213

Answered by mobizt
ulver2812 asked this question in Q&A
Discussion options

You must be logged in to vote

All Auth classes can be use locally as the credentials are copied after initializeApp was executed.

If you want to change the authentication method or type, just calling initializeApp with the new Auth class object.

The Realtime database url also can change any time prior to use, which it does not affect with the async tasks that are previously stored or currently run in the async queue.

Please see this custom wrapper class example that the Auth classes are defined locally.

void begin(Client &client, const String &databaseUrl)
{
NoAuth no_auth;
beginInternal(client, ge…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ulver2812
Comment options

Answer selected by ulver2812
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants