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

Add an OAuth example to the new SvelteKit SSR documentation #23618

Open
coppinger opened this issue May 2, 2024 · 0 comments
Open

Add an OAuth example to the new SvelteKit SSR documentation #23618

coppinger opened this issue May 2, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@coppinger
Copy link
Contributor

coppinger commented May 2, 2024

Improve documentation

https://supabase.com/docs/guides/auth/server-side/sveltekit

https://github.com/supabase/supabase/blob/master/apps/docs/content/guides/auth/server-side/sveltekit.mdx

Describe the problem

I found it slightly difficult to figure out how to use OAuth with the new SvelteKit SSR guide as there isn't an example of how to handle it—seemingly by redirecting to data.url

ex:

if (error) {
	console.error(error);
	return redirect(303, '/auth/error');
} else {
	return redirect(303, data.url);
}

Describe the improvement

It'd be great to address this in the guide. I tried to make a PR, but couldn't quite figure out how best to approach adding this info.

@coppinger coppinger added the documentation Improvements or additions to documentation label May 2, 2024
@encima encima added the enhancement New feature or request label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants