feat: add github oauth configuration
This commit is contained in:
parent
ac667a243d
commit
4a979080af
3 changed files with 24 additions and 0 deletions
3
apps/blog/src/lib/auth.ts
Normal file
3
apps/blog/src/lib/auth.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export function isAdmin(userId: string | undefined): boolean {
|
||||
return userId === import.meta.env.ADMIN_GITHUB_ID;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue