The DefaultUserTransformer
shipped with the sdk transforms between your actual user data and the SSOfy's User Entity model.
You can either use the default implementation(recommended) or craft your own implementation by implementing the UserTransformer interface.
The default implementation maps the following columns by default:
id
hash
name
display_name
picture
username
email
email_verified
phone
phone_verified
Any other data within the metadata
column (if exists) will also be filled in the entity automatically.
For custom column names, you may specify during the instantiation of the DefaultUserTransformer
.
You may also specify additional columns be included in the additional
object property of the final UserEntity.