-
-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add storage adapters * Remove unused filterCookies function * add pkce support * update sveltekit example * Add pre-release changeset * Bump SvelteKit version --------- Co-authored-by: David Plugge <[email protected]>
- Loading branch information
1 parent
413476d
commit 65bf8d4
Showing
112 changed files
with
1,552 additions
and
2,711 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'@supabase/auth-helpers-nextjs': minor | ||
'@supabase/auth-helpers-react': minor | ||
'@supabase/auth-helpers-remix': minor | ||
'@supabase/auth-helpers-shared': minor | ||
'@supabase/auth-helpers-sveltekit': minor | ||
--- | ||
|
||
Add cookie storage adapter per library following a shared storage adapter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"mode": "pre", | ||
"tag": "next", | ||
"initialVersions": { | ||
"@example/nextjs": "0.0.0", | ||
"@example/nextjs-server-components": "0.0.0", | ||
"@example/sveltekit": "0.0.0", | ||
"config": "0.1.0", | ||
"@supabase/auth-helpers-nextjs": "0.6.0", | ||
"@supabase/auth-helpers-react": "0.3.1", | ||
"@supabase/auth-helpers-remix": "0.1.8", | ||
"@supabase/auth-helpers-shared": "0.3.3", | ||
"@supabase/auth-helpers-sveltekit": "0.9.3", | ||
"tsconfig": "0.1.1" | ||
}, | ||
"changesets": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'@supabase/auth-helpers-nextjs': minor | ||
'@supabase/auth-helpers-react': minor | ||
'@supabase/auth-helpers-remix': minor | ||
'@supabase/auth-helpers-shared': minor | ||
'@supabase/auth-helpers-sveltekit': minor | ||
--- | ||
|
||
Add full server side support to auth helpers through PKCE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// pages/api/protected-route.ts | ||
import { NextApiHandler } from 'next'; | ||
import { createServerSupabaseClient } from '@supabase/auth-helpers-nextjs'; | ||
|
||
const callback: NextApiHandler = async (req, res) => { | ||
// Create authenticated Supabase Client | ||
const supabase = createServerSupabaseClient({ req, res }); | ||
|
||
const code = req.query.code; | ||
|
||
if (typeof code === 'string') { | ||
await supabase.auth.exchangeCodeForSession(code); | ||
} | ||
|
||
res.redirect('/'); | ||
}; | ||
|
||
export default callback; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { type LoaderArgs, redirect } from '@remix-run/node'; | ||
import { createServerClient } from 'utils/supabase.server'; | ||
|
||
export async function loader({ request }: LoaderArgs) { | ||
const url = new URL(request.url); | ||
const code = url.searchParams.get('code'); | ||
|
||
const response = new Response(); | ||
if (code) { | ||
const supabase = createServerClient({ request, response }); | ||
await supabase.auth.exchangeCodeForSession(code); | ||
} | ||
|
||
return redirect('/', { | ||
status: 303, | ||
headers: response.headers | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
50 changes: 0 additions & 50 deletions
50
examples/sveltekit-email-password/src/routes/(app)/+page.server.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.