Skip to content

Commit

Permalink
Update example projects
Browse files Browse the repository at this point in the history
  • Loading branch information
silentworks committed Sep 5, 2023
1 parent 9b58a60 commit 49a493d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
1 change: 1 addition & 0 deletions examples/nextjs-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"dependencies": {
"@supabase/auth-helpers-nextjs": "workspace:*",
"autoprefixer": "10.4.14",
"encoding": "^0.1.13",
"next": "13.4.4",
"postcss": "8.4.24",
"react": "18.2.0",
Expand Down
7 changes: 2 additions & 5 deletions examples/sveltekit/src/routes/(app)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@
const handleLogout: SubmitFunction = () => {
loading = true;
return async ({ result }) => {
if (result.type === 'redirect') {
await invalidate('supabase:auth');
} else {
await applyAction(result);
}
await invalidate('supabase:auth');
await applyAction(result);
loading = false;
};
};
Expand Down
16 changes: 16 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 49a493d

Please sign in to comment.