workos / authkit Goto Github PK
View Code? Open in Web Editor NEWThe world's best login box powered by WorkOS and Radix.
Home Page: https://authkit.com
License: MIT License
The world's best login box powered by WorkOS and Radix.
Home Page: https://authkit.com
License: MIT License
Would be nice for those of us making devtools.
It'd be great if I can use it directly from my react project
Sometimes timing couldn't be more perfect, I'm so thrilled to be able to tap into the brainpower at WorkOS with AuthKit. I'm sure this problem is me. I've been following along the docs and the nextjs example, tried both the AuthKit version and Jason's, thank you for the awesome post btw!
Access to fetch at 'https://api.workos.com/user_management/authorize?client_id=client_01HGG60KYN9F25CHGM3TYV56WB&provider=authkit&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fcallback&response_type=code' (redirected from 'http://localhost:3000/account?_rsc=acgkz') from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Any help or guidance would be appreciated as I'm in the process of working on this. Thanks!
Any plans for a mobile native implementation? ios/android
Not sure what is permissible!
Hey there,
I'm developing Remix apps on Cloudflare Pages and it does not look like Authkit supports that (workos/node seems to be using plenty of node core libs, and axios for fetching).
Do you have any plans to support Cloudflare Pages / Workers? If so, do you have a timeline? I'm happy to participate in testing :)
I'm having a hard time seeing what the prebuilt UI looks like. I can see the login form on authkit.com, but that's it. I can't find screenshots of stuff like the Clerk avatar dropdown or profile modal. The widgets are front-and-center on the Clerk website. I'd hope to at least see the screenshots on the README.
I don't want to have to create an account and set up all the example code just to see if I like the UI enough to switch from Clerk. :)
I followed the instructions in the document to complete the code and dashboard settings, but when I sent a request to ' http://localhost:3000/api/workos, I received a CORS error
This is the code that initiated my request:
fetch('http://localhost:3000/api/workOS',{
method: 'GET',
})
This is my api/workOS/route.ts
import { NextResponse } from 'next/server';
import { WorkOS } from '@workos-inc/node';
const workos = new WorkOS(process.env.WORKOS_API_KEY);
const clientId = process.env.WORKOS_CLIENT_ID as string;
export async function GET() {
const authorizationUrl = workos.userManagement.getAuthorizationUrl({
// Specify that we'd like AuthKit to handle the authentication flow
provider: 'authkit',
// The callback URI AuthKit will redirect to after authentication
redirectUri: 'http://localhost:3000/api/authCallback',
clientId,
});
// Redirect the user to the AuthKit sign-in page
return NextResponse.redirect(authorizationUrl);
}
and my nextjs version is 14.0
Any help or guidance would be appreciated, thanks!
Im getting an error when trying to build this app where the getAuthorizationUrl
method is being called with a clientId
, organizationId
, and redirectUri
. The organizationId
is being fetched from the environment variable SSO_ENABLED_ORGANIZATION_ID
. I don't have any need for this because I'm just testing this out locally. As such the environment variable is not set, it could be the cause of the error. Are there any remedies for this?
Excuse me, is this https://www.authkit.com/ Is it the webpage code? It looks very cool, like turning on a light in the dark, and I really like this special effect
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.