{"id":13407724,"url":"https://github.com/beyonk-group/svelte-social-auth","last_synced_at":"2026-01-12T02:58:56.885Z","repository":{"id":46168446,"uuid":"184062046","full_name":"beyonk-group/svelte-social-auth","owner":"beyonk-group","description":"Social Auth for Svelte v3","archived":false,"fork":false,"pushed_at":"2023-10-06T18:10:55.000Z","size":272,"stargazers_count":168,"open_issues_count":14,"forks_count":20,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-07T15:02:31.486Z","etag":null,"topics":["authentication","beyonk","facebook","facebook-login","google","google-login","signin","social","social-authentication","social-network","sso","svelte","svelte-v3","vanilla-js"],"latest_commit_sha":null,"homepage":null,"language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beyonk-group.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-29T11:54:07.000Z","updated_at":"2024-09-27T18:36:44.000Z","dependencies_parsed_at":"2024-05-30T22:37:30.116Z","dependency_job_id":"e4816c1e-11ee-40ec-a7c3-0f8a30f67b24","html_url":"https://github.com/beyonk-group/svelte-social-auth","commit_stats":null,"previous_names":["beyonk-group/svelte-social-auth","beyonk-adventures/svelte-social-auth"],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyonk-group%2Fsvelte-social-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyonk-group%2Fsvelte-social-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyonk-group%2Fsvelte-social-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyonk-group%2Fsvelte-social-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beyonk-group","download_url":"https://codeload.github.com/beyonk-group/svelte-social-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221467876,"owners_count":16827238,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","beyonk","facebook","facebook-login","google","google-login","signin","social","social-authentication","social-network","sso","svelte","svelte-v3","vanilla-js"],"created_at":"2024-07-30T20:00:48.176Z","updated_at":"2026-01-12T02:58:56.880Z","avatar_url":"https://github.com/beyonk-group.png","language":"Svelte","funding_links":[],"categories":["Svelte"],"sub_categories":["Components"],"readme":"\u003ca href=\"https://beyonk.com\"\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/218949/144224348-1b3a20d5-d68e-4a7a-b6ac-6946f19f4a86.png\" width=\"198\" /\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n\u003c/a\u003e\n\n## Svelte Social Auth\n\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com) [![svelte-v3](https://img.shields.io/badge/svelte-v3-blueviolet.svg)](https://svelte.dev) [![publish](https://github.com/beyonk-adventures/svelte-social-auth/actions/workflows/deploy.yml/badge.svg)](https://github.com/beyonk-adventures/svelte-social-auth/actions/workflows/deploy.yml)\n\nGoogle and Facebook Auth\n\nSvelteKit\nSSR Ready\nSvelte v3\n\n## installation\n````npm i @beyonk/svelte-social-auth --save-dev````\n\n## Usage\n\n```jsx\n\u003cGoogleAuth clientId=\"your-google-auth-client-id\" on:auth-success={e =\u003e console.dir(e.detail.user)} /\u003e\n\u003cFacebookAuth appId=\"your-facebook-app-id\" on:auth-success={e =\u003e console.dir(e.detail.user)} /\u003e\n\n\u003cscript\u003e\n  import { GoogleAuth, FacebookAuth } from '@beyonk/svelte-social-auth'\n\u003c/script\u003e\n```\n\n### Customising the buttons\n\nButtons have default graphics and text, however, both buttons are slotted, so simply put the button content you want inside:\n\n```\n\u003cGoogleAuth\u003e\n  \u003cdiv\u003emy custom content\u003c/div\u003e\n\u003c/GoogleAuth\u003e\n```\n\n### Attributes\n\nCommon attributes:\n\n| Attribute | Description | Type | Default |\n|---|---|---| --- |\n| text | Text of the sign-in button | string | 'Sign in with \u003cProvider\u003e' |\n\nThe attributes for the GoogleAuth component are:\n\n| Attribute | Description | Type | Default |\n|---|---|---| --- |\n| clientId | Google service account client id | string | - |\n\nThe attributes for the FacebookAuth component are:\n\n| Attribute | Description | Type | Default |\n|---|---|---| --- |\n| appId | Facebook app id | string | - |\n\n### Events\n\nThe events fired by the GoogleAuth component are:\n\n| Event | Purpose | Properties |\n|---|---|---|\n| on:auth-success | User authentication success | { user } |\n| on:auth-failure | User authentication failure | { error } |\n| on:init-error | Google Auth initialisation failure | { error } |\n\nThe events fired by the FacebookAuth component are:\n\n| Event | Purpose | Properties |\n|---|---|---|\n| on:auth-success | User authentication success | { user } |\n| on:auth-failure | User authentication failure | { error } |\n\n### Developing / Contributing\n\nNote that Facebook requires that you have HTTPS locally, despite their documentation to the contrary, so you will need to generate some SSL certs and point rollup config at them.\n\nPut your app and client ids in an `.env` file\n\n```bash\n.env.local\nVITE_GOOGLE_CLIENT_ID=\u003cyour-google-client-id\u003e\nVITE_FACEBOOK_APP_ID=\u003cyour-facebook-app-id\u003e\n``\n\n```bash\npnpm dev\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyonk-group%2Fsvelte-social-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeyonk-group%2Fsvelte-social-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyonk-group%2Fsvelte-social-auth/lists"}