Skip to content

Latest commit

 

History

History
276 lines (170 loc) · 10.6 KB

firebase_client.md

File metadata and controls

276 lines (170 loc) · 10.6 KB

Firebase Client Class and Static Functions

Description

The Firebase Client class and static functions interfaces

Static Functions

  1. 🔹 static user_auth_data &getAuth(T &auth)

Get the user authentication/autorization credentials data.

static user_auth_data &getAuth(T &auth)

Params:

  • auth - The user auth data (user_auth_data) which is the struct that holds the user sign-in credentials and tokens that obtained from the authentication/authorization classes via getAuth function.

Returns:

  • user_auth_data - The user authentication/authorization data.
  1. 🔹 static void initializeApp(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth)

Initialize the FirebaseApp.

static void initializeApp(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth)

Params:

  • aClient - The async client to work for authentication/authorization task.
  • app - The FirebaseApp class object to handle authentication/authorization task.
  • auth - The user auth data (user_auth_data) which is the struct that holds the user sign-in credentials and tokens that obtained from the authentication/authorization classes via getAuth function.
  1. 🔹 static void initializeApp(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth, AsyncResult &aResult)

Initialize the FirebaseApp without callback.

static void initializeApp(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth, AsyncResult &aResult)

Params:

  • aClient - The async client to work for authentication/authorization task.
  • app - The FirebaseApp class object to handle authentication/authorization task.
  • auth - The user auth data (user_auth_data) which is the struct that holds the user sign-in credentials and tokens that obtained from the authentication/authorization classes via getAuth function.
  • aResult - The async result (AsyncResult).
  1. 🔹 static void initializeApp(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth, AsyncResultCallback cb, const String &uid = "")

Initialize the FirebaseApp with callback.

static void initializeApp(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth, AsyncResultCallback cb, const String &uid = "")

Params:

  • aClient - The async client to work for authentication/authorization task.
  • app - The FirebaseApp class object to handle authentication/authorization task.
  • auth - The user auth data (user_auth_data) which is the struct that holds the user sign-in credentials and tokens that obtained from the authentication/authorization classes via getAuth function.
  • cb - The async result callback (AsyncResultCallback).
  • uid - The user specified UID of async result (optional).
  1. 🔹 static void dnitializeApp(FirebaseApp &app)

Deinitialize the FirebaseApp.

static void dnitializeApp(FirebaseApp &app)

Params:

  • app - The FirebaseApp class object to handle authentication/authorization task.
  1. 🔹 static void signup(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth)

Signup a new user.

static void signup(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth)

Params:

  • aClient - The async client to work for authentication/authorization task.
  • app - The FirebaseApp class object to handle authentication/authorization task.
  • auth - The user auth data (user_auth_data) which holds the user credentials from USerAccount class.
  1. 🔹 static void signup(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth, AsyncResult &aResult)

Signup a new user without callback.

static void signup(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth, AsyncResult &aResult)

Params:

  • aClient - The async client to work for authentication/authorization task.
  • app - The FirebaseApp class object to handle authentication/authorization task.
  • auth - The user auth data (user_auth_data) which holds the user credentials from USerAccount class.
  • aResult - The async result (AsyncResult).
  1. 🔹 static void signup(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth, AsyncResultCallback cb, const String &uid = "")

Signup a new user with callback.

static void signup(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth, AsyncResultCallback cb, const String &uid = "")

Params:

  • aClient - The async client to work for authentication/authorization task.
  • app - The FirebaseApp class object to handle authentication/authorization task.
  • auth - The user auth data (user_auth_data) which holds the user credentials from USerAccount class.
  • cb - The async result callback (AsyncResultCallback).
  • uid - The user specified UID of async result (optional).
  1. 🔹 static void resetPassword(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth)

Reset the user password.

static void resetPassword(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth)

Params:

  • aClient - The async client to work for authentication/authorization task.
  • app - The FirebaseApp class object to handle authentication/authorization task.
  • auth - The user auth data (user_auth_data) which holds the user credentials from USerAccount class.
  1. 🔹 static void resetPassword(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth, AsyncResult &aResult)

Reset the user password without callback.

static void resetPassword(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth, AsyncResult &aResult)

Params:

  • aClient - The async client to work for authentication/authorization task.
  • app - The FirebaseApp class object to handle authentication/authorization task.
  • auth - The user auth data (user_auth_data) which holds the user credentials from USerAccount class.
  • aResult - The async result (AsyncResult).
  1. 🔹 static void resetPassword(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth, AsyncResultCallback cb, const String &uid = "")

Reset the user password with callback.

static void resetPassword(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth, AsyncResultCallback cb, const String &uid = "")

Params:

  • aClient - The async client to work for authentication/authorization task.
  • app - The FirebaseApp class object to handle authentication/authorization task.
  • auth - The user auth data (user_auth_data) which holds the user credentials from USerAccount class.
  • cb - The async result callback (AsyncResultCallback).
  • uid - The user specified UID of async result (optional).
  1. 🔹 static void verify(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth)

Send the user verification link to email.

static void verify(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth) 

Params:

  • aClient - The async client to work for authentication/authorization task.
  • app - The FirebaseApp class object to handle authentication/authorization task.
  • auth - The user auth data (user_auth_data) which holds the user credentials from USerAccount class.
  1. 🔹 static void verify(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth, AsyncResult &aResult)

Send the user verification link to email without callback.

static void verify(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth, AsyncResult &aResult)

Params:

  • aClient - The async client to work for authentication/authorization task.
  • app - The FirebaseApp class object to handle authentication/authorization task.
  • auth - The user auth data (user_auth_data) which holds the user credentials from USerAccount class.
  • aResult - The async result (AsyncResult).
  1. 🔹 static void verify(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth, AsyncResultCallback cb, const String &uid = "")

Send the user verification link to email with callback.

static void verify(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth, AsyncResultCallback cb, const String &uid = "")

Params:

  • aClient - The async client to work for authentication/authorization task.
  • app - The FirebaseApp class object to handle authentication/authorization task.
  • auth - The user auth data (user_auth_data) which holds the user credentials from USerAccount class.
  • cb - The async result callback (AsyncResultCallback).
  • uid - The user specified UID of async result (optional).
  1. 🔹 static void deleteUser(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth)

Delete a user.

static void deleteUser(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth)

Params:

  • aClient - The async client to work for authentication/authorization task.
  • app - The FirebaseApp class object to handle authentication/authorization task.
  • auth - The user auth data (user_auth_data) which holds the user credentials from USerAccount class.
  1. 🔹 static void deleteUser(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth, AsyncResult &aResult)

Delete a user without callback.

static void deleteUser(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth, AsyncResult &aResult)

Params:

  • aClient - The async client to work for authentication/authorization task.
  • app - The FirebaseApp class object to handle authentication/authorization task.
  • auth - The user auth data (user_auth_data) which holds the user credentials from USerAccount class.
  • aResult - The async result (AsyncResult).
  1. 🔹 static void deleteUser(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth, AsyncResultCallback cb, const String &uid = "")

Delete a user with callback.

static void deleteUser(AsyncClientClass &aClient, FirebaseApp &app, user_auth_data &auth, AsyncResultCallback cb, const String &uid = "")

Params:

  • aClient - The async client to work for authentication/authorization task.
  • app - The FirebaseApp class object to handle authentication/authorization task.
  • auth - The user auth data (user_auth_data) which holds the user credentials from USerAccount class.
  • cb - The async result callback (AsyncResultCallback).
  • uid - The user specified UID of async result (optional).