Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Google Auth #26

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ The attributes for the GoogleAuth component are:
| Attribute | Description | Type | Default |
|---|---|---| --- |
| clientId | Google service account client id | string | - |
| scope | Google authentication scope | string | https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile openid |

The attributes for the FacebookAuth component are:

Expand All @@ -66,9 +67,8 @@ The events fired by the GoogleAuth component are:

| Event | Purpose | Properties |
|---|---|---|
| on:auth-success | User authentication success | { user } |
| on:auth-success | User authentication success | { user, token } |
| on:auth-failure | User authentication failure | { error } |
| on:init-error | Google Auth initialisation failure | { error } |

The events fired by the FacebookAuth component are:

Expand All @@ -91,4 +91,4 @@ VITE_FACEBOOK_APP_ID=<your-facebook-app-id>

```bash
pnpm dev
```
```
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
{
"name": "@beyonk/svelte-social-auth",
"version": "3.0.0",
"type": "module",
"volta": {
"node": "16.15.0"
},
"scripts": {
"dev": "svelte-kit dev --https --port 2088",
"build": "svelte-kit build",
"dev": "vite dev --port 2088",
"build": "vite build",
"lint": "eslint .",
"package": "svelte-kit package",
"certificates:create": "mkcert create-ca && mkcert create-cert",
"prepare": "svelte-kit sync"
},
"devDependencies": {
"@beyonk/eslint-config": "^6.0.0",
"@beyonk/eslint-config": "latest",
"@sveltejs/adapter-auto": "next",
"@sveltejs/kit": "next",
"eslint": "^8.14.0",
"mkcert": "^1.5.0",
"svelte": "^3.44.0",
"svelte2tsx": "^0.5.9",
"typescript": "^4.6.3"
},
"type": "module",
"volta": {
dextermb marked this conversation as resolved.
Show resolved Hide resolved
"node": "14.19.1"
"typescript": "^4.6.3",
"vite": "^3.0.0"
}
}
Loading