-
Notifications
You must be signed in to change notification settings - Fork 310
Add WorkOS AuthKit Integration Documentation #150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
### React | ||
|
||
**Example:** | ||
[React with Convex and AuthKit](https://github.com/workos/template-convex-react-vite-authkit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: this template repo could be move to the convex org if that's easier.
### Next.js | ||
|
||
**Example:** | ||
[Next.js with Convex and AuthKit](https://github.com/workos/template-convex-nextjs-authkit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: this template repo could be move to the convex org if that's easier.
13dc41b
to
863788e
Compare
import { createRoot } from "react-dom/client"; | ||
import { AuthKitProvider, useAuth } from "@workos-inc/authkit-react"; | ||
import { ConvexReactClient } from "convex/react"; | ||
import { ConvexProviderWithAuthKit } from "convex/react-authkit"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: I followed the patterns I saw in other guides and added this provider in get-convex/convex-js#55.
import { createRoot } from "react-dom/client"; | ||
import { AuthKitProvider, useAuth } from "@workos-inc/authkit-react"; | ||
import { ConvexReactClient } from "convex/react"; | ||
import { ConvexProviderWithAuthKit } from "convex/react-authkit"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: I followed the patterns I saw in other guides and added this provider in get-convex/convex-js#55.
863788e
to
393d08e
Compare
393d08e
to
b7179d4
Compare
Assigning to @ikhare to take a look |
This pull request adds comprehensive documentation for integrating WorkOS AuthKit with Convex applications.
Changes
Documentation: Added complete AuthKit integration guide (
npm-packages/docs/docs/auth/authkit.mdx
)Screenshots: Added 6 UI screenshots showing WorkOS dashboard configuration steps
Code Examples: Added implementation examples
_mainAuthKit.tsx
)_mainAuthKit.jsx
)workosFunctions.ts
)By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.