@7x7cl/qwik
Version:
An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.
17 lines (15 loc) • 483 B
text/typescript
import { serverAuth$ } from '@builder.io/qwik-auth';
import GitHub from '@auth/core/providers/github';
import type { Provider } from '@auth/core/providers';
export const { onRequest, useAuthSession, useAuthSignin, useAuthSignout } = serverAuth$(
({ env }) => ({
secret: env.get('AUTH_SECRET'),
trustHost: true,
providers: [
GitHub({
clientId: env.get('GITHUB_ID')!,
clientSecret: env.get('GITHUB_SECRET')!,
}),
] as Provider[],
})
);