Browse Source

Adds auth test

main
Steve Ruiz 4 years ago
parent
commit
d4d7b06833
2 changed files with 19 additions and 0 deletions
  1. 0
    0
      pages/api/auth.ts
  2. 19
    0
      pages/auth-test.tsx

+ 0
- 0
pages/api/auth.ts View File


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

@@ -24,6 +24,25 @@ export default function Home({
24 24
         <pre>{JSON.stringify(session, null, 2)}</pre>
25 25
         <p>Is owner? {isOwner.toString()}</p>
26 26
         <p>Is sponsor? {isSponsor.toString()}</p>
27
+
28
+        {isSponsor ? (
29
+          <p>
30
+            <b>Hey, thanks for sponsoring me!</b>
31
+          </p>
32
+        ) : (
33
+          <p>
34
+            <b>
35
+              This site is just for my github sponsors.{' '}
36
+              <a
37
+                href="https://github.com/sponsors/steveruizok"
38
+                target="_blank"
39
+                rel="noopener noreferrer"
40
+              >
41
+                Sponsor here!
42
+              </a>
43
+            </b>
44
+          </p>
45
+        )}
27 46
       </div>
28 47
     </>
29 48
   )

Loading…
Cancel
Save