-
-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Labels
Description
Motivation
See lucia-auth/example-sveltekit-google-oauth#1 for an example
Description
Prefer using error
and redirect
over using Response
. There might be some advanced cases where Response
is required, but it shouldn't be for simple ones
Examples
<!-- ✓ GOOD -->
redirect(307, "/");
<!-- ✗ BAD -->
return new Response(null, {
status: 307,
headers: {
Location: "/"
}
});
Additional comments
No response
ota-meshi