Skip to content

Commit

Permalink
fix: Handle missing email in Facebook login
Browse files Browse the repository at this point in the history
  • Loading branch information
dixidroid committed Oct 4, 2024
1 parent 75ac68d commit d9e0d49
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class FacebookAuthHelper {
continuation.safeResume(
SocialAuthResponse(
accessToken = result.accessToken.token,
name = obj?.getString(ApiConstants.NAME) ?: "",
email = obj?.getString(ApiConstants.EMAIL) ?: "",
name = obj?.optString(ApiConstants.NAME).orEmpty(),
email = obj?.optString(ApiConstants.EMAIL).orEmpty(),
authType = AuthType.FACEBOOK,
)
) {
Expand Down

0 comments on commit d9e0d49

Please sign in to comment.