Skip to content

Commit

Permalink
Update helpers.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
thejessewinton committed Aug 2, 2024
1 parent 168f601 commit 43615cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/init-0/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import type {
TicketDoc,
TicketVariant
} from './tickets/constants';
import { OAuthProvider } from '@appwrite.io/console';

export function createCountdown(date: Date) {
const today = new Date();
Expand Down Expand Up @@ -186,7 +187,7 @@ export async function getTicketById(id: string, f = fetch) {

export function loginGithub() {
appwriteInit.account.createOAuth2Session(
'github',
OAuthProvider.Github,
`${window.location.origin}/init-0/tickets?success=1`,
`${window.location.origin}/init-0/tickets?error=1`,
['read:user']
Expand Down

0 comments on commit 43615cf

Please sign in to comment.