You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: In the SocialLoginPlugin.swift file, the authenticationToken is not returned when performing a Facebook Limited Login. Although the token is successfully retrieved in the FacebookLoginResponse, only the accessToken and profile fields are included in the response, which prevents the front-end from accessing the authenticationToken required for further authentication steps.
This issue specifically affects scenarios where Facebook Limited Login is used.
Steps to reproduce:
Initiate a Facebook Limited Login using the SocialLoginPlugin with the limited login option set in the payload.
Observe the response object returned to the front-end.
Notice that authenticationToken is missing, while accessToken and profile are present.
Expected Behavior: The response object should include the authenticationToken field, along with the accessToken and profile, especially when using Facebook Limited Login.
Current Behavior: The authenticationToken is not returned in the login result for Facebook when using Limited Login. The relevant code section omits this field.
Affected Code: In the file SocialLoginPlugin.swift, the method handleLoginResult currently returns the following for Facebook:
The authenticationToken is a critical part of Facebook Limited Login and is required for verifying the login state. Please ensure the authenticationToken is properly returned to the front-end, allowing full access to the necessary authentication details when using Facebook Limited Login.
The text was updated successfully, but these errors were encountered:
Linknpay
changed the title
AuthenticationToken not returned
AuthenticationToken not returned in FB Limited Login
Oct 18, 2024
Description: In the SocialLoginPlugin.swift file, the authenticationToken is not returned when performing a Facebook Limited Login. Although the token is successfully retrieved in the FacebookLoginResponse, only the accessToken and profile fields are included in the response, which prevents the front-end from accessing the authenticationToken required for further authentication steps.
This issue specifically affects scenarios where Facebook Limited Login is used.
Steps to reproduce:
Initiate a Facebook Limited Login using the SocialLoginPlugin with the limited login option set in the payload.
Observe the response object returned to the front-end.
Notice that authenticationToken is missing, while accessToken and profile are present.
Expected Behavior: The response object should include the authenticationToken field, along with the accessToken and profile, especially when using Facebook Limited Login.
Current Behavior: The authenticationToken is not returned in the login result for Facebook when using Limited Login. The relevant code section omits this field.
Affected Code: In the file SocialLoginPlugin.swift, the method handleLoginResult currently returns the following for Facebook:
Proposed Fix: Modify the handleLoginResult method to include the authenticationToken in the response for Facebook Limited Login:
The authenticationToken is a critical part of Facebook Limited Login and is required for verifying the login state. Please ensure the authenticationToken is properly returned to the front-end, allowing full access to the necessary authentication details when using Facebook Limited Login.
The text was updated successfully, but these errors were encountered: