Browse Source

updates scope, adds copy to svg

main
Steve Ruiz 4 years ago
parent
commit
db2dd05e83
2 changed files with 1 additions and 21 deletions
  1. 1
    1
      pages/api/auth/[...nextauth].ts
  2. 0
    20
      pages/auth-test.tsx

+ 1
- 1
pages/api/auth/[...nextauth].ts View File

8
       Providers.GitHub({
8
       Providers.GitHub({
9
         clientId: process.env.GITHUB_ID,
9
         clientId: process.env.GITHUB_ID,
10
         clientSecret: process.env.GITHUB_SECRET,
10
         clientSecret: process.env.GITHUB_SECRET,
11
-        scope: 'user',
11
+        scope: 'read:user',
12
       }),
12
       }),
13
     ],
13
     ],
14
     callbacks: {
14
     callbacks: {

+ 0
- 20
pages/auth-test.tsx View File

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…
Cancel
Save