forked from javayhu/free-directory-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauth.config.ts
29 lines (27 loc) · 891 Bytes
/
auth.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { env } from "@/env.mjs";
import type { NextAuthConfig } from "next-auth";
import Github from "next-auth/providers/github";
import Google from "next-auth/providers/google";
export default {
providers: [
Github({
clientId: env.GITHUB_CLIENT_ID,
clientSecret: env.GITHUB_CLIENT_SECRET,
// https://github.com/dubinc/oss-gallery/blob/main/auth.config.ts
// Unknown argument `username`. Available options are marked with ?.
// profile(profile) {
// return {
// id: profile.id.toString(),
// name: profile.name || profile.login,
// email: profile.email,
// image: profile.avatar_url,
// username: profile.login,
// };
// },
}),
// Google({
// clientId: env.GOOGLE_CLIENT_ID,
// clientSecret: env.GOOGLE_CLIENT_SECRET,
// }),
],
} satisfies NextAuthConfig