Skip to content

Commit

Permalink
docs: fix undefined sveltekit env vars (#1537)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrilliantDeviation7 committed Apr 17, 2024
1 parent b37654c commit a84e63e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/pages/tutorials/github-oauth/sveltekit.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,11 @@ Initialize the GitHub provider with the client ID and secret.
// src/lib/server/auth.ts
// ...
import { GitHub } from "arctic";
import { GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET } from '$env/static/private';

export const github = new GitHub(
import.meta.env.GITHUB_CLIENT_ID,
import.meta.env.GITHUB_CLIENT_SECRET
GITHUB_CLIENT_ID,
GITHUB_CLIENT_SECRET
);
```

Expand Down

0 comments on commit a84e63e

Please sign in to comment.