Members
(static) config
Properties:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Properties
|
(static) OAuth :Object
OAuth object instance of oauth module
Type:
- Object
Methods
(static) authenticateViaTouchID(success, error)
Authenticately via TouchID.
Parameters:
Name | Type | Description |
---|---|---|
success |
function | The callback to call on success. |
error |
function | The callback to call on error. |
(static) autoLogin(opt, opt)
This method will select the best behaviour and will login the user
Parameters:
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opt |
Object | ||||||||||||||||||||||||||
opt |
Object |
Properties
|
(static) event()
Add an event to current module
(static) getUser() → {Backbone.Model}
Get current User model
Returns:
- Type
- Backbone.Model
(static) getUserID() → {Number}
Get current User ID
Return 0 if no user is logged in
Returns:
- Type
- Number
(static) isLoggedIn() → {Boolean}
Check if the user is logged in
Returns:
- Type
- Boolean
(static) isOfflineLoginAvailable() → {Boolean}
Check if an offline login is available
Returns:
- Type
- Boolean
(static) isStoredLoginAvailable() → {Boolean}
Check if the stored login feature is available
Stored login indicate if the auth can be completed using stored credentials on the device
but require an Internet connection anyway
Returns:
- Type
- Boolean
(static) isTouchIDSupported() → {Boolean}
Check if the TouchID is enabled and supported on the device and configuration.
Returns:
- Type
- Boolean
(static) loadDriver() → {Object}
Load a driver
Returns:
- Type
- Object
(static) login(opt)
Login using selected driver
Parameters:
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opt |
Object |
Properties
|
(static) logout(callback)
Logout the user
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | Callback to invoke on completion |
(static) offlineLogin(opt)
Login using offline properties
This method doesn't require an internet connection
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opt |
Object |
Properties
|
(static) storedLogin(opt)
Login using stored credentials on the device
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opt |
Object |
Properties
|
(static) userWantsToUseTouchID(val) → {Boolean}
Set or get the TouchID use property.
Parameters:
Name | Type | Description |
---|---|---|
val |
Boolean |
Returns:
- Type
- Boolean