File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,13 @@ Uses SQLite. Rate limiting is implemented using JavaScript `Map`.
4
4
5
5
## Initialize project
6
6
7
- Create a GitHub OAuth app. Paste the client ID and secret to a ` .env ` file.
7
+ Create a GitHub OAuth app with the redirect URI pointed to ` /login/github/callback ` .
8
+
9
+ ```
10
+ http://localhost:5173/login/github/callback
11
+ ```
12
+
13
+ Paste the client ID and secret to a ` .env ` file.
8
14
9
15
``` bash
10
16
GITHUB_CLIENT_ID=" "
@@ -22,3 +28,7 @@ Run the application:
22
28
` ` `
23
29
pnpm dev
24
30
` ` `
31
+
32
+ # # Notes
33
+
34
+ - TODO: Update redirect URI
Original file line number Diff line number Diff line change 1
1
import { GitHub } from "arctic" ;
2
2
import { GITHUB_CLIENT_ID , GITHUB_CLIENT_SECRET } from "$env/static/private" ;
3
3
4
+ // TODO: Update redirect URI
4
5
export const github = new GitHub ( GITHUB_CLIENT_ID , GITHUB_CLIENT_SECRET , "http://localhost:5173/login/github/callback" ) ;
You can’t perform that action at this time.
0 commit comments