- Source:
Methods
(static) cleanCognitoKeys(data) → {array}
Map Cognito attributes into an array with friendly names
Parameters:
Name | Type | Description |
---|---|---|
data |
array | An array of custom attributes from Cognito |
- Source:
Returns:
- An array of attributes with formatted keys
- Type
- array
(static) cleanKey(key) → {string}
Format a Cognito user property key nicely to match GraphQL schema
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The key to format |
- Source:
Returns:
- The formatted key
- Type
- string