{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","params":[],"results":{"codes":[]},"settings":""},"next":{"description":"","pages":[]},"title":"ILoginConfiguration","type":"basic","slug":"iloginconfiguration","excerpt":"Describes an object that stores configuration for initialization.","body":"## Example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"import Application = require(\\\"application\\\");\\nimport SocialLogin = require(\\\"nativescript-social-login\\\");\\n\\nif (Application.android) {\\n    Application.android.onActivityCreated = (activity) => {\\n        var cfg: <SocialLogin.ILoginConfiguration>{\\n            activity: activity,\\n          \\n            googleServerClientId: \\\"<YOUR-CLIENT-ID-HERE>\\\",\\n        };\\n      \\n        SocialLogin.init(cfg);\\n    });\\n}\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]\n## Members\n\n### Properties\n\n#### activity\n\nThe underlying custom activity to use.\n\n#### facebook\n\nFacebook specific configuration data.\n\n##### initialize\n\nInitialize Facebook provider or not. Is (true) by default.\n\n#### google\n\nGoogle specific configuration data.\n\n##### initialize\n\nInitialize Google provider or not. Is (true) by default.\n\n##### serverClientId\n\nThe server client ID for requesting auth token for a backend server, e.g.\n\ns. [Enabling Server-Side Access](https://developers.google.com/identity/sign-in/android/offline-access)\n\n#### onActivityResult\n\nFallback action for an Android activity result.","updates":[],"order":7,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5759a5475577ba2b00cc4311","__v":0,"createdAt":"2016-06-09T05:27:44.953Z","githubsync":"","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Classes and interfaces","slug":"classes-and-interfaces","order":2,"from_sync":false,"reference":false,"_id":"5759a5475577ba2b00cc4309","version":"5759a5475577ba2b00cc4306","__v":0,"project":"575656e0a71a711700de7eef","createdAt":"2016-06-09T05:11:07.146Z"},"project":"575656e0a71a711700de7eef","user":"57429d54990c970e00386e12","version":{"version":"1.3.1","version_clean":"1.3.1","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5759a5475577ba2b00cc4307","5759a5475577ba2b00cc4308","5759a5475577ba2b00cc4309"],"_id":"5759a5475577ba2b00cc4306","createdAt":"2016-06-09T17:20:07.619Z","releaseDate":"2016-06-09T17:20:07.619Z","project":"575656e0a71a711700de7eef","__v":1},"parentDoc":null}

ILoginConfiguration

Describes an object that stores configuration for initialization.

## Example [block:code] { "codes": [ { "code": "import Application = require(\"application\");\nimport SocialLogin = require(\"nativescript-social-login\");\n\nif (Application.android) {\n Application.android.onActivityCreated = (activity) => {\n var cfg: <SocialLogin.ILoginConfiguration>{\n activity: activity,\n \n googleServerClientId: \"<YOUR-CLIENT-ID-HERE>\",\n };\n \n SocialLogin.init(cfg);\n });\n}", "language": "javascript" } ] } [/block] ## 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](https://developers.google.com/identity/sign-in/android/offline-access) #### onActivityResult Fallback action for an Android activity result.