* feature(auth): replace clerk.com with custom auth * minor fixes * remove notification preferences * decrease live events interval fix(api): cookies.. # Conflicts: # .gitignore # apps/api/src/index.ts # apps/dashboard/src/app/providers.tsx # packages/trpc/src/trpc.ts
19 lines
457 B
TypeScript
19 lines
457 B
TypeScript
import { GitHub } from 'arctic';
|
|
|
|
export type { OAuth2Tokens } from 'arctic';
|
|
import * as Arctic from 'arctic';
|
|
|
|
export { Arctic };
|
|
|
|
export const github = new GitHub(
|
|
process.env.GITHUB_CLIENT_ID ?? '',
|
|
process.env.GITHUB_CLIENT_SECRET ?? '',
|
|
process.env.GITHUB_REDIRECT_URI ?? '',
|
|
);
|
|
|
|
export const google = new Arctic.Google(
|
|
process.env.GOOGLE_CLIENT_ID ?? '',
|
|
process.env.GOOGLE_CLIENT_SECRET ?? '',
|
|
process.env.GOOGLE_REDIRECT_URI ?? '',
|
|
);
|