We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8580d47 commit aae6133Copy full SHA for aae6133
pages/tutorials/github-oauth/sveltekit.md
@@ -46,8 +46,9 @@ Initialize the GitHub provider with the client ID and secret.
46
47
```ts
48
import { GitHub } from "arctic";
49
+import { GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET } from "$env/static/private";
50
-export const github = new GitHub(import.meta.env.GITHUB_CLIENT_ID, import.meta.env.GITHUB_CLIENT_SECRET, null);
51
+export const github = new GitHub(GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET, null);
52
```
53
54
## Sign in page
@@ -83,7 +84,12 @@ export async function GET(event: RequestEvent): Promise<Response> {
83
84
sameSite: "lax"
85
});
86
- redirect(302, url.toString());
87
+ return new Response(null, {
88
+ status: 302,
89
+ headers: {
90
+ Location: url.toString()
91
+ }
92
+ });
93
}
94
95
0 commit comments