Skip to content

Commit

Permalink
style(examples): update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
i7N3 committed Jul 28, 2023
1 parent 841ffa0 commit 0e8193c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/sveltejs-kit/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ node_modules
.output
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
pnpm-lock.yaml
2 changes: 1 addition & 1 deletion examples/sveltejs-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"vite": "^4.0.0"
},
"dependencies": {
"google-oauth-gsi": "1.3.4"
"google-oauth-gsi": "2.0.0"
}
}
3 changes: 2 additions & 1 deletion examples/vanilla-ts/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ dist-ssr
*.njsproj
*.sln
*.sw?
.env
.env
pnpm-lock.yaml
2 changes: 1 addition & 1 deletion examples/vanilla-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"vite": "^4.0.0"
},
"dependencies": {
"google-oauth-gsi": "1.3.4"
"google-oauth-gsi": "2.0.0"
}
}
1 change: 1 addition & 0 deletions examples/vanilla-ts/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ document.querySelector<HTMLDivElement>('#app')!.appendChild(buttonEl);
const renderButton = provider.useRenderButton({
element: buttonEl,
useOneTap: true,
width: 200,
onError: () => console.error('Failed to render button'),
onSuccess: (res) =>
console.log('Logged in with google (render button)', res),
Expand Down

0 comments on commit 0e8193c

Please sign in to comment.