-
Notifications
You must be signed in to change notification settings - Fork 3
AuthService
Ben Cuan edited this page Oct 8, 2017
·
1 revision
app/shared/auth.service
1.0.0 by EnumC, dbqeo
Connects the app to the Firebase database using dbconnect. This is the only script that may use dbconnect; any other database connection scripts must use auth.service. Includes getter and setter methods for data, as well as OAuth functions to manage login and authentication.
getUID() : string
Returns the UID of the current user.getCustom(item: string) : any
Returns the value of the item within the user data entry. May return a nested object or a primitive.
/** @param {string} item - Name of the data entry to retrieve **/getSetting(setting: string) : any
Returns the value of the setting within the "settings" object. Returns a primitive type.
/** @param {string} setting - Name of the setting to retrieve **/saveCustom(item: string, input: any) : void
Assigns an input value to a data entry 'item' in the user data.
/** @param {string} item - Name of the data to set **/
/** @param {any} input - Data to assign the item to **/saveSetting(setting: string, input: any) : void
Assigns an input value to a data entry 'setting' in the user settings object.
/** @param {string} setting - Name of the setting to set **/
/** @param {any} input - Data to assign the item to **/