{"_id":"5759a5475577ba2b00cc430c","version":{"_id":"5759a5475577ba2b00cc4306","project":"575656e0a71a711700de7eef","__v":1,"createdAt":"2016-06-09T17:20:07.619Z","releaseDate":"2016-06-09T17:20:07.619Z","categories":["5759a5475577ba2b00cc4307","5759a5475577ba2b00cc4308","5759a5475577ba2b00cc4309"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.3.1","version":"1.3.1"},"__v":0,"category":{"_id":"5759a5475577ba2b00cc4308","project":"575656e0a71a711700de7eef","__v":0,"version":"5759a5475577ba2b00cc4306","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-06-09T03:13:43.221Z","from_sync":false,"order":1,"slug":"functions","title":"Functions"},"project":"575656e0a71a711700de7eef","user":"57429d54990c970e00386e12","parentDoc":null,"githubsync":"","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-06-09T05:04:20.754Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"var result = SocialLogin.init({\\n    googleServerClientId: \\\"<YOUR-CLIENT-ID-HERE>\\\",  // optional\\n});\\n\\nconsole.log(\\\"Facebook isInitialized? \\\" + result.facebook.isInitialized);\\nif (result.facebook.error) {\\n    console.log(\\\"Facebook error: \\\" + result.facebook.error);\\n}\\n\\nconsole.log(\\\"Google isInitialized? \\\" + result.google.isInitialized);\\nif (result.google.error) {\\n    console.log(\\\"Google error: \\\" + result.google.error);\\n}\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]","excerpt":"Initializes the login providers.","slug":"init-config","type":"fn","title":"init"}

init

Initializes the login providers.

[block:code] { "codes": [ { "code": "var result = SocialLogin.init({\n googleServerClientId: \"<YOUR-CLIENT-ID-HERE>\", // optional\n});\n\nconsole.log(\"Facebook isInitialized? \" + result.facebook.isInitialized);\nif (result.facebook.error) {\n console.log(\"Facebook error: \" + result.facebook.error);\n}\n\nconsole.log(\"Google isInitialized? \" + result.google.isInitialized);\nif (result.google.error) {\n console.log(\"Google error: \" + result.google.error);\n}", "language": "javascript" } ] } [/block]