Describes an object that stores configuration for initialization.
Example
import Application = require("application");
import SocialLogin = require("nativescript-social-login");
if (Application.android) {
Application.android.onActivityCreated = (activity) => {
var cfg: <SocialLogin.ILoginConfiguration>{
activity: activity,
googleServerClientId: "<YOUR-CLIENT-ID-HERE>",
};
SocialLogin.init(cfg);
});
}
Members
Properties
activity
The underlying custom activity to use.
facebook
Facebook specific configuration data.
initialize
Initialize Facebook provider or not. Is (true) by default.
google
Google specific configuration data.
initialize
Initialize Google provider or not. Is (true) by default.
serverClientId
The server client ID for requesting auth token for a backend server, e.g.
s. Enabling Server-Side Access
onActivityResult
Fallback action for an Android activity result.