Skip to content

Commit ce7f1d2

Browse files
Upgrade to 0.4.0 (#16)
1 parent 8cc9e5e commit ce7f1d2

File tree

8 files changed

+78
-20
lines changed

8 files changed

+78
-20
lines changed

package-lock.json

Lines changed: 66 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
},
1414
"dependencies": {
1515
"@radix-ui/react-icons": "^1.3.0",
16-
"@radix-ui/themes": "^3.0.0-rc.18-patch.2",
17-
"@workos-inc/nextjs": "0.3.0",
16+
"@radix-ui/themes": "^3.0.1",
17+
"@workos-inc/authkit-nextjs": "0.4.0",
1818
"next": "14.1.3",
1919
"react": "^18",
2020
"react-dom": "^18"

src/app/account/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { getUser } from "@workos-inc/nextjs";
2-
import { Text, Heading, TextFieldInput, Flex, Box } from "@radix-ui/themes";
1+
import { getUser } from "@workos-inc/authkit-nextjs";
2+
import { Text, Heading, TextField, Flex, Box } from "@radix-ui/themes";
33

44
export default async function AccountPage() {
55
const { user, role } = await getUser({ ensureSignedIn: true });
@@ -33,7 +33,7 @@ export default async function AccountPage() {
3333
</Text>
3434

3535
<Box flexGrow="1">
36-
<TextFieldInput value={value || ""} readOnly />
36+
<TextField.Root value={value || ""} readOnly />
3737
</Box>
3838
</label>
3939
</Flex>

src/app/callback/route.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
export { authkitCallbackRoute as GET } from "@workos-inc/nextjs";
1+
import { handleAuth } from "@workos-inc/authkit-nextjs";
2+
3+
export const GET = handleAuth();

src/app/components/sign-in-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getSignInUrl, getUser, signOut } from "@workos-inc/nextjs";
1+
import { getSignInUrl, getUser, signOut } from "@workos-inc/authkit-nextjs";
22
import { Button, Flex } from "@radix-ui/themes";
33

44
export async function SignInButton({ large }: { large?: boolean }) {

src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import NextLink from "next/link";
66
import { Theme, Card, Container, Flex, Button, Box } from "@radix-ui/themes";
77
import { Footer } from "./components/footer";
88
import { SignInButton } from "./components/sign-in-button";
9-
import { Impersonation } from "@workos-inc/nextjs";
9+
import { Impersonation } from "@workos-inc/authkit-nextjs";
1010

1111
export const metadata: Metadata = {
1212
title: "Example AuthKit Authenticated App",

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import NextLink from "next/link";
2-
import { getUser } from "@workos-inc/nextjs";
2+
import { getUser } from "@workos-inc/authkit-nextjs";
33
import { Button, Flex, Heading, Text } from "@radix-ui/themes";
44
import { SignInButton } from "./components/sign-in-button";
55

src/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { authkitMiddleware } from "@workos-inc/nextjs";
1+
import { authkitMiddleware } from "@workos-inc/authkit-nextjs";
22

33
export default authkitMiddleware();
44

0 commit comments

Comments
 (0)