diff --git a/apps/client-ts/src/components/Auth/b2c/LoginWithStytchSDKUI.tsx b/apps/client-ts/src/components/Auth/b2c/LoginWithStytchSDKUI.tsx
index f961ef441..15674fe51 100644
--- a/apps/client-ts/src/components/Auth/b2c/LoginWithStytchSDKUI.tsx
+++ b/apps/client-ts/src/components/Auth/b2c/LoginWithStytchSDKUI.tsx
@@ -4,6 +4,7 @@ import { StytchLogin } from '@stytch/nextjs';
import { StytchLoginConfig, OAuthProviders, Products, StyleConfig, StytchEvent, StytchError } from '@stytch/vanilla-js';
import { getDomainFromWindow } from '@/lib/stytch/urlUtils';
import { Button } from '@/components/ui/button';
+import { Icons } from '@/components/shared/icons';
const sdkStyle: StyleConfig = {
fontFamily: '"Helvetica New", Helvetica, sans-serif',
@@ -31,18 +32,47 @@ const callbackConfig = {
onError: (error: StytchError) => console.log(error),
}
+const getOauthUrl = (provider: string) => {
+ const isTest = process.env.NEXT_PUBLIC_STYTCH_PROJECT_ENV == 'test';
+ const baseStytch = isTest ? "test" : "api"
+ return `https://${baseStytch}.stytch.com/v1/public/oauth/${provider.toLowerCase()}/start?public_token=${process.env.NEXT_PUBLIC_STYTCH_PUBLIC_TOKEN}`;
+}
+
const LoginWithStytchSDKUI = () => {
return (
<>
-
-
+
+
+
+
+
+
+
+
+
+ Or continue with
+
+
+
+
+
>
)
}
diff --git a/apps/client-ts/src/components/shared/icons.tsx b/apps/client-ts/src/components/shared/icons.tsx
new file mode 100644
index 000000000..a0362adcf
--- /dev/null
+++ b/apps/client-ts/src/components/shared/icons.tsx
@@ -0,0 +1,26 @@
+import { LucideProps } from "lucide-react";
+
+
+
+ export const Icons = {
+ gitHub: ({ ...props }: LucideProps) => (
+
+ ),
+ google: ({ ...props }: LucideProps) => (
+
+ )
+ }
\ No newline at end of file
diff --git a/packages/api/prisma/schema.prisma b/packages/api/prisma/schema.prisma
index df5e2acff..0ab263682 100644
--- a/packages/api/prisma/schema.prisma
+++ b/packages/api/prisma/schema.prisma
@@ -51,9 +51,9 @@ model connections {
expiration_timestamp DateTime? @db.Timestamp(6)
created_at DateTime @db.Timestamp(6)
connection_token String?
+ vertical String
id_project String @db.Uuid
id_linked_user String @db.Uuid
- vertical String?
linked_users linked_users @relation(fields: [id_linked_user], references: [id_linked_user], onDelete: NoAction, onUpdate: NoAction, map: "fk_11")
projects projects @relation(fields: [id_project], references: [id_project], onDelete: NoAction, onUpdate: NoAction, map: "fk_9")
diff --git a/packages/api/swagger/swagger-spec.json b/packages/api/swagger/swagger-spec.json
index f46d24485..21b94df30 100644
--- a/packages/api/swagger/swagger-spec.json
+++ b/packages/api/swagger/swagger-spec.json
@@ -324,14 +324,7 @@
],
"responses": {
"200": {
- "description": "",
- "content": {
- "application/json": {
- "schema": {
- "type": "object"
- }
- }
- }
+ "description": ""
}
},
"tags": [
@@ -665,7 +658,7 @@
"content": {
"application/json": {
"schema": {
- "type": "object"
+ "type": "number"
}
}
}