If you are implementing a Custom SSO setup for your site, this guide will help you map the fields passed by the SSO provider to the member fields offered by Bettermode.
❗Note: This is only applicable if your OAuth2 provider follows OpenID Connect standards or User information such as the User's id, email, and name.
Bettermode maps the JSON result to Bettermode user's object as followed using the order mentioned for each field:
externalId: id, ID, userId
email: email, user_email
name: name, display_name, displayName, full_name, pseudo
username: username, user_login, nickname
profilePicture: picture, icon_url
fields: fields
Bettermode will also look for a data key for all keys mentioned above if the externalId is not available in the root JSON object.
Please note that the above mapping covers most of the standard user info endpoints including the WP OAuth Server.