Skip to content

Commit 49e56e5

Browse files
authored
Fix README issues (#16)
1 parent f0c1514 commit 49e56e5

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,17 @@ For pages where you want to display a signed-in and signed-out view, use `authki
9191

9292
```tsx
9393
import type { ActionFunctionArgs, LoaderFunctionArgs } from '@remix-run/node';
94-
import { Link, useLoaderData, json, Form } from '@remix-run/react';
94+
import { json } from '@remix-run/node';
95+
import { Form, Link, useLoaderData } from '@remix-run/react';
9596
import { getSignInUrl, getSignUpUrl, signOut, authkitLoader } from '@workos-inc/authkit-remix';
9697

97-
export const loader = (args: LoaderFunctionArgs) => authkitLoader(args, async ({ request, auth }) => {
98-
return json({
99-
signInUrl: await getSignInUrl();
100-
signUpUrl: await getSignUpUrl();
98+
export const loader = (args: LoaderFunctionArgs) =>
99+
authkitLoader(args, async ({ request, auth }) => {
100+
return json({
101+
signInUrl: await getSignInUrl(),
102+
signUpUrl: await getSignUpUrl(),
103+
});
101104
});
102-
});
103105

104106
export async function action({ request }: ActionFunctionArgs) {
105107
return await signOut(request);
@@ -148,7 +150,8 @@ Use the `signOut` method to sign out the current logged in user, end the session
148150
Sometimes it is useful to obtain the access token directly, for instance to make API requests to another service.
149151

150152
```tsx
151-
import type { LoaderFunctionArgs, json } from '@remix-run/node';
153+
import type { LoaderFunctionArgs } from '@remix-run/node';
154+
import { json } from '@remix-run/node';
152155
import { withAuth } from '@workos-inc/authkit-remix';
153156

154157
export const loader = (args: LoaderFunctionArgs) =>

0 commit comments

Comments
 (0)