-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #199 from kinde-oss/peter/fix/build-and-linting
chore: linting and build
- Loading branch information
Showing
31 changed files
with
4,099 additions
and
1,087 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { handleAuth } from "@kinde-oss/kinde-auth-nextjs/server"; | ||
import {handleAuth} from '@kinde-oss/kinde-auth-nextjs/server'; | ||
|
||
export const GET = handleAuth(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
import { getKindeServerSession } from "@kinde-oss/kinde-auth-nextjs/server"; | ||
import { NextResponse } from "next/server"; | ||
import {getKindeServerSession} from '@kinde-oss/kinde-auth-nextjs/server'; | ||
import {NextResponse} from 'next/server'; | ||
|
||
export async function GET() { | ||
const { getUser, isAuthenticated } = getKindeServerSession(); | ||
const {getUser, isAuthenticated} = getKindeServerSession(); | ||
|
||
if (!(await isAuthenticated())) { | ||
return new Response("Unauthorized", { status: 401 }); | ||
return new Response('Unauthorized', {status: 401}); | ||
} | ||
|
||
const user = await getUser(); | ||
const data = { message: "Hello User", id: user?.given_name }; | ||
const data = {message: 'Hello User', id: user?.given_name}; | ||
|
||
return NextResponse.json({ data }); | ||
return NextResponse.json({data}); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { NextResponse } from "next/server"; | ||
import {NextResponse} from 'next/server'; | ||
|
||
export async function GET() { | ||
const data = { message: "Hello world" }; | ||
const data = {message: 'Hello world'}; | ||
|
||
return NextResponse.json({ data }); | ||
return NextResponse.json({data}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import Link from "next/link"; | ||
import Link from 'next/link'; | ||
|
||
export default function Home() { | ||
return ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.