I did not understand what is Token Generation and the purpose of these code snippets in the code for Firebase
// Assign the callback function for the long running token generation task */
config.token_status_callback = tokenStatusCallback; //see addons/TokenHelper.h
// Assign the maximum retry of token generation
config.max_token_generation_retry = 5;
Firebase_Token – Pastebin.com
1 Answers
Hi.
You don’t need to modify those snippets.
Those are needed to generate tokens.
The token is what allows us to identify the user and provide access to the firebase project and services.
Learn more:
- https://firebase.google.com/docs/auth/admin/verify-id-tokens#retrieve_id_tokens_on_clients
- https://firebase.google.com/docs/auth/admin/create-custom-tokens
Regards,
Sara