2023-08-11 17:47:49 +03:00
|
|
|
When a user logs in using a social login provider, the backend receives some data about the user.
|
2024-01-18 15:42:00 +03:00
|
|
|
Wasp lets you access this data inside the `userSignupFields` getters.
|
2023-08-11 17:47:49 +03:00
|
|
|
|
|
|
|
For example, the User entity can include a `displayName` field which you can set based on the details received from the provider.
|
|
|
|
|
|
|
|
Wasp also lets you customize the configuration of the providers' settings using the `configFn` function.
|
|
|
|
|
2024-01-18 15:42:00 +03:00
|
|
|
Let's use this example to show both fields in action:
|
2023-08-11 17:47:49 +03:00
|
|
|
|
|
|
|
<!-- This snippet is used in google.md and github.md -->
|