Kaynağa Gözat

updates scope, adds copy to svg

main
Steve Ruiz 4 yıl önce
ebeveyn
işleme
db2dd05e83
2 değiştirilmiş dosya ile 1 ekleme ve 21 silme
  1. 1
    1
      pages/api/auth/[...nextauth].ts
  2. 0
    20
      pages/auth-test.tsx

+ 1
- 1
pages/api/auth/[...nextauth].ts Dosyayı Görüntüle

@@ -8,7 +8,7 @@ export default function (req: NextApiRequest, res: NextApiResponse) {
8 8
       Providers.GitHub({
9 9
         clientId: process.env.GITHUB_ID,
10 10
         clientSecret: process.env.GITHUB_SECRET,
11
-        scope: 'user',
11
+        scope: 'read:user',
12 12
       }),
13 13
     ],
14 14
     callbacks: {

+ 0
- 20
pages/auth-test.tsx Dosyayı Görüntüle

@@ -1,20 +0,0 @@
1
-import Head from 'next/head'
2
-import { signIn, signOut, useSession } from 'next-auth/client'
3
-
4
-export default function Home() {
5
-  const [session, loading] = useSession()
6
-  return (
7
-    <>
8
-      <Head>
9
-        <title>tldraw</title>
10
-      </Head>
11
-      <div>
12
-        <button onClick={() => signIn()}>Sign In</button>
13
-        <button onClick={() => signOut()}>Sign Out</button>
14
-        <pre>{JSON.stringify(session, null, 2)}</pre>
15
-        {loading && 'Loading...'}
16
-        {session && <p>Hey, you made it! Thanks for sponsoring me.</p>}
17
-      </div>
18
-    </>
19
-  )
20
-}

Loading…
İptal
Kaydet