mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Change Facebook oAuth param from authType to auth_type
According to the Facebook docs: https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow The parameter should be `auth_type`, not `authType`. A cursory look through their API history didn't show anything about it being changed, but I can confirm that using this feature does not work with `authType` in the current implementation. Related meteor/docs#94 Related meteor/meteor#7584 Closes meteor/meteor#7078
This commit is contained in:
committed by
Ben Newman
parent
693fce59be
commit
8de559a967
@@ -37,8 +37,8 @@ Facebook.requestCredential = function (options, credentialRequestCompleteCallbac
|
||||
'&state=' + OAuth._stateParam(loginStyle, credentialToken, options && options.redirectUrl);
|
||||
|
||||
// Handle authentication type (e.g. for force login you need authType: "reauthenticate")
|
||||
if (options && options.authType) {
|
||||
loginUrl += "&authType=" + encodeURIComponent(options.authType);
|
||||
if (options && options.auth_type) {
|
||||
loginUrl += "&auth_type=" + encodeURIComponent(options.auth_type);
|
||||
}
|
||||
|
||||
OAuth.launchLogin({
|
||||
|
||||
Reference in New Issue
Block a user