mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-03-19 15:01:06 +08:00
fix: Remove userFields debug logs.
This commit is contained in:
parent
614d7c915d
commit
8fad19f28c
@ -16,17 +16,18 @@
|
||||
import { get } from '@lowdefy/helpers';
|
||||
|
||||
function addUserFieldsToToken(context, { account, authConfig, profile, token }) {
|
||||
const { debug } = context.logger;
|
||||
// const { debug } = context.logger;
|
||||
const objects = { account, profile };
|
||||
debug('Adding userFields to user. Available provider data is:');
|
||||
debug(objects);
|
||||
// TODO: Add when debug is fixed.
|
||||
// debug('Adding userFields to user. Available provider data is:');
|
||||
// debug(objects);
|
||||
Object.entries(authConfig.userFields).forEach(([lowdefyFieldName, providerFieldName]) => {
|
||||
const value = get(objects, providerFieldName);
|
||||
debug(
|
||||
`Adding provider field "${providerFieldName}" with value ${JSON.stringify(
|
||||
value
|
||||
)} as "${lowdefyFieldName}"`
|
||||
);
|
||||
// debug(
|
||||
// `Adding provider field "${providerFieldName}" with value ${JSON.stringify(
|
||||
// value
|
||||
// )} as "${lowdefyFieldName}"`
|
||||
// );
|
||||
token[lowdefyFieldName] = value;
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user