You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-25Lines changed: 28 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,24 @@
1
-
# AuthKit Remix Library
1
+
# AuthKit React Router Library
2
2
3
-
The AuthKit library for Remix provides convenient helpers for authentication and session management using WorkOS & AuthKit with Remix. You can find this library in action in the [remix-authkit-example](https://github.com/workos/remix-authkit-example) repo.
3
+
The AuthKit library for React Router 7+ provides convenient helpers for authentication and session management using WorkOS & AuthKit with React Router. You can find this library in action in the [react-rotuer-authkit-example](https://github.com/workos/react-rotuer-authkit-example) repo.
4
4
5
5
## Installation
6
6
7
7
Install the package with:
8
8
9
9
```
10
-
npm i @workos-inc/authkit-remix
10
+
npm i @workos-inc/authkit-react-router
11
11
```
12
12
13
13
or
14
14
15
15
```
16
-
yarn add @workos-inc/authkit-remix
16
+
yarn add @workos-inc/authkit-react-router
17
17
```
18
18
19
19
## Configuration
20
20
21
-
AuthKit for Remix offers a flexible configuration system that allows you to customize various settings. You can configure the library in three ways:
21
+
AuthKit for React Router offers a flexible configuration system that allows you to customize various settings. You can configure the library in three ways:
22
22
23
23
### 1. Environment Variables
24
24
@@ -36,7 +36,7 @@ AuthKit for Remix offers a flexible configuration system that allows you to cust
36
36
You can also configure AuthKit programmatically by importing the `configure` function:
@@ -59,7 +59,7 @@ For non-standard environments (like Deno or Edge functions), you can provide a c
59
59
>While this library includes support for custom environment sources that could theoretically work in non-Node.js runtimes like Deno or Edge functions, this functionality has not been extensively tested (yet). If you're planning to use AuthKit in these environments, you may encounter unexpected issues. We welcome feedback and contributions from users who test in these environments.
@@ -103,10 +103,10 @@ When retrieving configuration values, AuthKit follows this priority order:
103
103
104
104
### Callback route
105
105
106
-
AuthKit requires that you have a callback URL to redirect users back to after they've authenticated. In your Remix app, [create a new route](https://remix.run/docs/en/main/discussion/routes) and add the following:
106
+
AuthKit requires that you have a callback URL to redirect users back to after they've authenticated. In your React Router app, [create a new route](https://reactrouter.com/start/framework/routing) and add the following:
For pages where you want to display a signed-in and signed-out view, use `authkitLoader` to retrieve the user profile from WorkOS. You can pass in additional data by providing a loader function directly to `authkitLoader`.
0 commit comments