Methods
(static) fetchSession(expoToken)
Get the users session-object from fixrates api/session.
Parameters:
Name | Type | Description |
---|---|---|
expoToken |
String | The users unique device expoToken |
- Source:
(static) getOrders(userRole)
Get all the orders available for the user.
Parameters:
Name | Type | Description |
---|---|---|
userRole |
String | The users role e.g "BANK". |
- Source:
(static) getPushSettings(expoToken, associationType)
Get the users pushnotificationsettings from database and set them in the redux store.
Parameters:
Name | Type | Description |
---|---|---|
expoToken |
String | The users unique device expoToken |
associationType |
String | The users associationType e.g "BANK" |
- Source:
(static) loadingPhase(token, hasBiometricHardware)
See if the user has used the app before on startup.
Parameters:
Name | Type | Description |
---|---|---|
token |
String | The users unique device expoToken |
hasBiometricHardware |
boolean | Whether or not the users device has biometric hardware. |
- Source:
(static) logOut(expoToken, hardLogout)
Sets the redux store back to default.
If the user chooses to do a hard logout he can log in as another user.
The database also gets altered so next time he logs in it will be like the first time.
Parameters:
Name | Type | Description |
---|---|---|
expoToken |
String | Users unique device expoToken. |
hardLogout |
Boolean | Hardlogout resets some settings in the database. |
- Source:
(static) setJWT(jwt)
Store the users unique JWT in store.
The JWT is used to show content that require login on web.
Parameters:
Name | Type | Description |
---|---|---|
jwt |
String | JWT retrieved from fixrate's api after bankID-login. |
- Source:
(static) setPrompt(bioAnswer, promptAnswer, expoToken)
Set the users promptanswer in the database.
Parameters:
Name | Type | Description |
---|---|---|
bioAnswer |
boolean | If the user wants to use biometric login in the future. |
promptAnswer |
boolean | The user has answered the biometric login question |
expoToken |
String | The users unique device expoToken |
- Source:
(static) setPushSettings(expoToken, newValue, notificationType, associationType)
Used to change the value and subscription to the apps differen pushnotificationsettings.
Parameters:
Name | Type | Description |
---|---|---|
expoToken |
String | The users unique device expoToken |
newValue |
boolean | e.g true/false. |
notificationType |
String | Changed notificationType. |
associationType |
String | The users associationType |
- Source:
(inner) Get all new orders thats been published on the marketplace the last 7 days.()
- Source:
(inner) storeUser(expoToken, userId, associations)
Store the user in the database.
Parameters:
Name | Type | Description |
---|---|---|
expoToken |
String | The users unique device expoToken. |
userId |
String | The users unique userId. |
associations |
Array | The users association |
- Source: