Skip to content

Commit

Permalink
fix: Handle missing email in Facebook login (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
dixidroid authored Oct 7, 2024
1 parent 4c1a909 commit 1dc72d2
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 1dc72d2

Please sign in to comment.