@contentgrowth/content-auth 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend/index.d.ts +231 -399
- package/dist/backend/index.js +1 -1
- package/dist/{chunk-WPMUP2XZ.js → chunk-KMN5YLY5.js} +70 -68
- package/dist/frontend/client.d.ts +12 -12
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/backend/index.js
CHANGED
|
@@ -120,86 +120,87 @@ __export(schema_exports, {
|
|
|
120
120
|
verifications: () => verifications
|
|
121
121
|
});
|
|
122
122
|
import { sqliteTable, text, integer } from "drizzle-orm/sqlite-core";
|
|
123
|
-
var createUsersTable = (tableName = "users") => sqliteTable(tableName, {
|
|
124
|
-
id: text("id").primaryKey(),
|
|
125
|
-
name: text("name").notNull(),
|
|
126
|
-
email: text("email").notNull().unique(),
|
|
127
|
-
emailVerified: integer("emailVerified", { mode: "boolean" }).notNull(),
|
|
128
|
-
image: text("image"),
|
|
129
|
-
createdAt: integer("createdAt", { mode: "timestamp" }).notNull(),
|
|
130
|
-
updatedAt: integer("updatedAt", { mode: "timestamp" }).notNull()
|
|
123
|
+
var createUsersTable = (tableName = "users", fields) => sqliteTable(tableName, {
|
|
124
|
+
[fields?.id || "id"]: text(fields?.id || "id").primaryKey(),
|
|
125
|
+
name: text(fields?.name || "name").notNull(),
|
|
126
|
+
[fields?.email || "email"]: text(fields?.email || "email").notNull().unique(),
|
|
127
|
+
[fields?.emailVerified || "emailVerified"]: integer(fields?.emailVerified || "emailVerified", { mode: "boolean" }).notNull(),
|
|
128
|
+
image: text(fields?.image || "image"),
|
|
129
|
+
[fields?.createdAt || "createdAt"]: integer(fields?.createdAt || "createdAt", { mode: "timestamp" }).notNull(),
|
|
130
|
+
[fields?.updatedAt || "updatedAt"]: integer(fields?.updatedAt || "updatedAt", { mode: "timestamp" }).notNull()
|
|
131
131
|
});
|
|
132
|
-
var createSessionsTable = (tableName = "sessions", usersTableOrFn = users) => {
|
|
132
|
+
var createSessionsTable = (tableName = "sessions", usersTableOrFn = users, fields, userPkField = "id") => {
|
|
133
133
|
const usersTable = typeof usersTableOrFn === "function" ? usersTableOrFn() : usersTableOrFn;
|
|
134
134
|
return sqliteTable(tableName, {
|
|
135
|
-
id: text("id").primaryKey(),
|
|
136
|
-
expiresAt: integer("expiresAt", { mode: "timestamp" }).notNull(),
|
|
137
|
-
token: text("token").notNull().unique(),
|
|
138
|
-
createdAt: integer("createdAt", { mode: "timestamp" }).notNull(),
|
|
139
|
-
updatedAt: integer("updatedAt", { mode: "timestamp" }).notNull(),
|
|
140
|
-
ipAddress: text("ipAddress"),
|
|
141
|
-
userAgent: text("userAgent"),
|
|
142
|
-
userId: text("userId").notNull().references(() => usersTable
|
|
143
|
-
activeOrganizationId: text("activeOrganizationId")
|
|
135
|
+
[fields?.id || "id"]: text(fields?.id || "id").primaryKey(),
|
|
136
|
+
expiresAt: integer(fields?.expiresAt || "expiresAt", { mode: "timestamp" }).notNull(),
|
|
137
|
+
token: text(fields?.token || "token").notNull().unique(),
|
|
138
|
+
createdAt: integer(fields?.createdAt || "createdAt", { mode: "timestamp" }).notNull(),
|
|
139
|
+
updatedAt: integer(fields?.updatedAt || "updatedAt", { mode: "timestamp" }).notNull(),
|
|
140
|
+
ipAddress: text(fields?.ipAddress || "ipAddress"),
|
|
141
|
+
userAgent: text(fields?.userAgent || "userAgent"),
|
|
142
|
+
userId: text(fields?.userId || "userId").notNull().references(() => usersTable[userPkField], { onDelete: "cascade" }),
|
|
143
|
+
activeOrganizationId: text(fields?.activeOrganizationId || "activeOrganizationId")
|
|
144
144
|
});
|
|
145
145
|
};
|
|
146
|
-
var createAccountsTable = (tableName = "accounts", usersTableOrFn = users) => {
|
|
146
|
+
var createAccountsTable = (tableName = "accounts", usersTableOrFn = users, fields, userPkField = "id") => {
|
|
147
147
|
const usersTable = typeof usersTableOrFn === "function" ? usersTableOrFn() : usersTableOrFn;
|
|
148
148
|
return sqliteTable(tableName, {
|
|
149
|
-
id: text("id").primaryKey(),
|
|
150
|
-
accountId: text("accountId").notNull(),
|
|
151
|
-
providerId: text("providerId").notNull(),
|
|
152
|
-
userId: text("userId").notNull().references(() => usersTable
|
|
153
|
-
accessToken: text("accessToken"),
|
|
154
|
-
refreshToken: text("refreshToken"),
|
|
155
|
-
idToken: text("idToken"),
|
|
156
|
-
accessTokenExpiresAt: integer("accessTokenExpiresAt", { mode: "timestamp" }),
|
|
157
|
-
refreshTokenExpiresAt: integer("refreshTokenExpiresAt", { mode: "timestamp" }),
|
|
158
|
-
scope: text("scope"),
|
|
159
|
-
password: text("password"),
|
|
160
|
-
createdAt: integer("createdAt", { mode: "timestamp" }).notNull(),
|
|
161
|
-
updatedAt: integer("updatedAt", { mode: "timestamp" }).notNull()
|
|
149
|
+
[fields?.id || "id"]: text(fields?.id || "id").primaryKey(),
|
|
150
|
+
accountId: text(fields?.accountId || "accountId").notNull(),
|
|
151
|
+
providerId: text(fields?.providerId || "providerId").notNull(),
|
|
152
|
+
userId: text(fields?.userId || "userId").notNull().references(() => usersTable[userPkField], { onDelete: "cascade" }),
|
|
153
|
+
accessToken: text(fields?.accessToken || "accessToken"),
|
|
154
|
+
refreshToken: text(fields?.refreshToken || "refreshToken"),
|
|
155
|
+
idToken: text(fields?.idToken || "idToken"),
|
|
156
|
+
accessTokenExpiresAt: integer(fields?.accessTokenExpiresAt || "accessTokenExpiresAt", { mode: "timestamp" }),
|
|
157
|
+
refreshTokenExpiresAt: integer(fields?.refreshTokenExpiresAt || "refreshTokenExpiresAt", { mode: "timestamp" }),
|
|
158
|
+
scope: text(fields?.scope || "scope"),
|
|
159
|
+
password: text(fields?.password || "password"),
|
|
160
|
+
createdAt: integer(fields?.createdAt || "createdAt", { mode: "timestamp" }).notNull(),
|
|
161
|
+
updatedAt: integer(fields?.updatedAt || "updatedAt", { mode: "timestamp" }).notNull()
|
|
162
162
|
});
|
|
163
163
|
};
|
|
164
|
-
var createVerificationsTable = (tableName = "verifications") => sqliteTable(tableName, {
|
|
165
|
-
id: text("id").primaryKey(),
|
|
166
|
-
identifier: text("identifier").notNull(),
|
|
167
|
-
value: text("value").notNull(),
|
|
168
|
-
expiresAt: integer("expiresAt", { mode: "timestamp" }).notNull(),
|
|
169
|
-
createdAt: integer("createdAt", { mode: "timestamp" }),
|
|
170
|
-
updatedAt: integer("updatedAt", { mode: "timestamp" })
|
|
164
|
+
var createVerificationsTable = (tableName = "verifications", fields) => sqliteTable(tableName, {
|
|
165
|
+
[fields?.id || "id"]: text(fields?.id || "id").primaryKey(),
|
|
166
|
+
identifier: text(fields?.identifier || "identifier").notNull(),
|
|
167
|
+
value: text(fields?.value || "value").notNull(),
|
|
168
|
+
expiresAt: integer(fields?.expiresAt || "expiresAt", { mode: "timestamp" }).notNull(),
|
|
169
|
+
createdAt: integer(fields?.createdAt || "createdAt", { mode: "timestamp" }),
|
|
170
|
+
updatedAt: integer(fields?.updatedAt || "updatedAt", { mode: "timestamp" })
|
|
171
171
|
});
|
|
172
|
-
var createOrganizationsTable = (tableName = "organizations") => sqliteTable(tableName, {
|
|
173
|
-
id: text("id").primaryKey(),
|
|
174
|
-
name: text("name").notNull(),
|
|
175
|
-
slug: text("slug").unique(),
|
|
176
|
-
logo: text("logo"),
|
|
177
|
-
createdAt: integer("createdAt", { mode: "timestamp" }).notNull(),
|
|
178
|
-
metadata: text("metadata")
|
|
172
|
+
var createOrganizationsTable = (tableName = "organizations", fields) => sqliteTable(tableName, {
|
|
173
|
+
[fields?.id || "id"]: text(fields?.id || "id").primaryKey(),
|
|
174
|
+
name: text(fields?.name || "name").notNull(),
|
|
175
|
+
slug: text(fields?.slug || "slug").unique(),
|
|
176
|
+
logo: text(fields?.logo || "logo"),
|
|
177
|
+
createdAt: integer(fields?.createdAt || "createdAt", { mode: "timestamp" }).notNull(),
|
|
178
|
+
metadata: text(fields?.metadata || "metadata")
|
|
179
179
|
});
|
|
180
|
-
var createMembersTable = (tableName = "members", organizationsTableOrFn = organizations, usersTableOrFn = users) => {
|
|
180
|
+
var createMembersTable = (tableName = "members", organizationsTableOrFn = organizations, usersTableOrFn = users, fields, userPkField = "id") => {
|
|
181
181
|
const organizationsTable = typeof organizationsTableOrFn === "function" ? organizationsTableOrFn() : organizationsTableOrFn;
|
|
182
182
|
const usersTable = typeof usersTableOrFn === "function" ? usersTableOrFn() : usersTableOrFn;
|
|
183
183
|
return sqliteTable(tableName, {
|
|
184
|
-
id: text("id").primaryKey(),
|
|
185
|
-
organizationId: text("organizationId").notNull().references(() => organizationsTable.id, { onDelete: "cascade" }),
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
184
|
+
[fields?.id || "id"]: text(fields?.id || "id").primaryKey(),
|
|
185
|
+
organizationId: text(fields?.organizationId || "organizationId").notNull().references(() => organizationsTable[fields?.organizationId || "id"] || organizationsTable.id, { onDelete: "cascade" }),
|
|
186
|
+
// Partial fix for org FK too?
|
|
187
|
+
userId: text(fields?.userId || "userId").notNull().references(() => usersTable[userPkField], { onDelete: "cascade" }),
|
|
188
|
+
role: text(fields?.role || "role").notNull(),
|
|
189
|
+
createdAt: integer(fields?.createdAt || "createdAt", { mode: "timestamp" }).notNull()
|
|
189
190
|
});
|
|
190
191
|
};
|
|
191
|
-
var createInvitationsTable = (tableName = "invitations", organizationsTableOrFn = organizations, usersTableOrFn = users) => {
|
|
192
|
+
var createInvitationsTable = (tableName = "invitations", organizationsTableOrFn = organizations, usersTableOrFn = users, fields, userPkField = "id") => {
|
|
192
193
|
const organizationsTable = typeof organizationsTableOrFn === "function" ? organizationsTableOrFn() : organizationsTableOrFn;
|
|
193
194
|
const usersTable = typeof usersTableOrFn === "function" ? usersTableOrFn() : usersTableOrFn;
|
|
194
195
|
return sqliteTable(tableName, {
|
|
195
|
-
id: text("id").primaryKey(),
|
|
196
|
-
organizationId: text("organizationId").notNull().references(() => organizationsTable.id, { onDelete: "cascade" }),
|
|
197
|
-
email: text("email").notNull(),
|
|
198
|
-
role: text("role"),
|
|
199
|
-
status: text("status").notNull(),
|
|
200
|
-
expiresAt: integer("expiresAt", { mode: "timestamp" }).notNull(),
|
|
201
|
-
inviterId: text("inviterId").notNull().references(() => usersTable
|
|
202
|
-
createdAt: integer("createdAt", { mode: "timestamp" }).notNull()
|
|
196
|
+
[fields?.id || "id"]: text(fields?.id || "id").primaryKey(),
|
|
197
|
+
organizationId: text(fields?.organizationId || "organizationId").notNull().references(() => organizationsTable[fields?.organizationId || "id"] || organizationsTable.id, { onDelete: "cascade" }),
|
|
198
|
+
email: text(fields?.email || "email").notNull(),
|
|
199
|
+
role: text(fields?.role || "role"),
|
|
200
|
+
status: text(fields?.status || "status").notNull(),
|
|
201
|
+
expiresAt: integer(fields?.expiresAt || "expiresAt", { mode: "timestamp" }).notNull(),
|
|
202
|
+
inviterId: text(fields?.inviterId || "inviterId").notNull().references(() => usersTable[userPkField], { onDelete: "cascade" }),
|
|
203
|
+
createdAt: integer(fields?.createdAt || "createdAt", { mode: "timestamp" }).notNull()
|
|
203
204
|
});
|
|
204
205
|
};
|
|
205
206
|
var users = createUsersTable();
|
|
@@ -348,13 +349,14 @@ var createAuth = (config) => {
|
|
|
348
349
|
const orgTableName = schemaMapping?.organization?.tableName || "organizations";
|
|
349
350
|
const memberTableName = schemaMapping?.member?.tableName || "members";
|
|
350
351
|
const invitationTableName = schemaMapping?.invitation?.tableName || "invitations";
|
|
351
|
-
const
|
|
352
|
-
const
|
|
353
|
-
const
|
|
354
|
-
const
|
|
355
|
-
const
|
|
356
|
-
const
|
|
357
|
-
const
|
|
352
|
+
const userPkField = schemaMapping?.user?.fields?.id || "id";
|
|
353
|
+
const usersTable = createUsersTable(userTableName, schemaMapping?.user?.fields);
|
|
354
|
+
const organizationsTable = createOrganizationsTable(orgTableName, schemaMapping?.organization?.fields);
|
|
355
|
+
const sessionsTable = createSessionsTable(sessionTableName, usersTable, schemaMapping?.session?.fields, userPkField);
|
|
356
|
+
const accountsTable = createAccountsTable(accountTableName, usersTable, schemaMapping?.account?.fields, userPkField);
|
|
357
|
+
const verificationsTable = createVerificationsTable(verificationTableName, schemaMapping?.verification?.fields);
|
|
358
|
+
const membersTable = createMembersTable(memberTableName, organizationsTable, usersTable, schemaMapping?.member?.fields, userPkField);
|
|
359
|
+
const invitationsTable = createInvitationsTable(invitationTableName, organizationsTable, usersTable, schemaMapping?.invitation?.fields, userPkField);
|
|
358
360
|
const userKey = schemaMapping?.user?.tableName || "user";
|
|
359
361
|
const sessionKey = schemaMapping?.session?.tableName || "session";
|
|
360
362
|
const accountKey = schemaMapping?.account?.tableName || "account";
|
|
@@ -525,11 +525,11 @@ declare const createClient: (baseUrl?: string) => {
|
|
|
525
525
|
} & {
|
|
526
526
|
organization: {
|
|
527
527
|
updateMemberRole: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
528
|
-
role: better_auth.LiteralString | "
|
|
528
|
+
role: "member" | better_auth.LiteralString | "admin" | "owner" | better_auth.LiteralString[] | ("member" | "admin" | "owner")[];
|
|
529
529
|
memberId: string;
|
|
530
530
|
organizationId?: string | undefined;
|
|
531
531
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
532
|
-
role: better_auth.LiteralString | "
|
|
532
|
+
role: "member" | better_auth.LiteralString | "admin" | "owner" | better_auth.LiteralString[] | ("member" | "admin" | "owner")[];
|
|
533
533
|
memberId: string;
|
|
534
534
|
organizationId?: string | undefined;
|
|
535
535
|
} & {
|
|
@@ -628,7 +628,7 @@ declare const createClient: (baseUrl?: string) => {
|
|
|
628
628
|
sortDirection?: "asc" | "desc" | undefined;
|
|
629
629
|
filterField?: string | undefined;
|
|
630
630
|
filterValue?: string | number | boolean | undefined;
|
|
631
|
-
filterOperator?: "eq" | "ne" | "
|
|
631
|
+
filterOperator?: "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "contains" | undefined;
|
|
632
632
|
organizationId?: string | undefined;
|
|
633
633
|
organizationSlug?: string | undefined;
|
|
634
634
|
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
@@ -639,7 +639,7 @@ declare const createClient: (baseUrl?: string) => {
|
|
|
639
639
|
sortDirection?: "asc" | "desc" | undefined;
|
|
640
640
|
filterField?: string | undefined;
|
|
641
641
|
filterValue?: string | number | boolean | undefined;
|
|
642
|
-
filterOperator?: "eq" | "ne" | "
|
|
642
|
+
filterOperator?: "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "contains" | undefined;
|
|
643
643
|
organizationId?: string | undefined;
|
|
644
644
|
organizationSlug?: string | undefined;
|
|
645
645
|
} | undefined;
|
|
@@ -746,7 +746,7 @@ declare const createClient: (baseUrl?: string) => {
|
|
|
746
746
|
} & {
|
|
747
747
|
signIn: {
|
|
748
748
|
social: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
749
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "
|
|
749
|
+
provider: (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
|
|
750
750
|
callbackURL?: string | undefined;
|
|
751
751
|
newUserCallbackURL?: string | undefined;
|
|
752
752
|
errorCallbackURL?: string | undefined;
|
|
@@ -763,7 +763,7 @@ declare const createClient: (baseUrl?: string) => {
|
|
|
763
763
|
loginHint?: string | undefined;
|
|
764
764
|
additionalData?: Record<string, any> | undefined;
|
|
765
765
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
766
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "
|
|
766
|
+
provider: (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
|
|
767
767
|
callbackURL?: string | undefined;
|
|
768
768
|
newUserCallbackURL?: string | undefined;
|
|
769
769
|
errorCallbackURL?: string | undefined;
|
|
@@ -2102,11 +2102,11 @@ declare const authClient: {
|
|
|
2102
2102
|
} & {
|
|
2103
2103
|
organization: {
|
|
2104
2104
|
updateMemberRole: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
2105
|
-
role: better_auth.LiteralString | "
|
|
2105
|
+
role: "member" | better_auth.LiteralString | "admin" | "owner" | better_auth.LiteralString[] | ("member" | "admin" | "owner")[];
|
|
2106
2106
|
memberId: string;
|
|
2107
2107
|
organizationId?: string | undefined;
|
|
2108
2108
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
2109
|
-
role: better_auth.LiteralString | "
|
|
2109
|
+
role: "member" | better_auth.LiteralString | "admin" | "owner" | better_auth.LiteralString[] | ("member" | "admin" | "owner")[];
|
|
2110
2110
|
memberId: string;
|
|
2111
2111
|
organizationId?: string | undefined;
|
|
2112
2112
|
} & {
|
|
@@ -2205,7 +2205,7 @@ declare const authClient: {
|
|
|
2205
2205
|
sortDirection?: "asc" | "desc" | undefined;
|
|
2206
2206
|
filterField?: string | undefined;
|
|
2207
2207
|
filterValue?: string | number | boolean | undefined;
|
|
2208
|
-
filterOperator?: "eq" | "ne" | "
|
|
2208
|
+
filterOperator?: "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "contains" | undefined;
|
|
2209
2209
|
organizationId?: string | undefined;
|
|
2210
2210
|
organizationSlug?: string | undefined;
|
|
2211
2211
|
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth.Prettify<{
|
|
@@ -2216,7 +2216,7 @@ declare const authClient: {
|
|
|
2216
2216
|
sortDirection?: "asc" | "desc" | undefined;
|
|
2217
2217
|
filterField?: string | undefined;
|
|
2218
2218
|
filterValue?: string | number | boolean | undefined;
|
|
2219
|
-
filterOperator?: "eq" | "ne" | "
|
|
2219
|
+
filterOperator?: "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "contains" | undefined;
|
|
2220
2220
|
organizationId?: string | undefined;
|
|
2221
2221
|
organizationSlug?: string | undefined;
|
|
2222
2222
|
} | undefined;
|
|
@@ -2323,7 +2323,7 @@ declare const authClient: {
|
|
|
2323
2323
|
} & {
|
|
2324
2324
|
signIn: {
|
|
2325
2325
|
social: <FetchOptions extends better_auth.ClientFetchOption<Partial<{
|
|
2326
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "
|
|
2326
|
+
provider: (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
|
|
2327
2327
|
callbackURL?: string | undefined;
|
|
2328
2328
|
newUserCallbackURL?: string | undefined;
|
|
2329
2329
|
errorCallbackURL?: string | undefined;
|
|
@@ -2340,7 +2340,7 @@ declare const authClient: {
|
|
|
2340
2340
|
loginHint?: string | undefined;
|
|
2341
2341
|
additionalData?: Record<string, any> | undefined;
|
|
2342
2342
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth.Prettify<{
|
|
2343
|
-
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "
|
|
2343
|
+
provider: (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
|
|
2344
2344
|
callbackURL?: string | undefined;
|
|
2345
2345
|
newUserCallbackURL?: string | undefined;
|
|
2346
2346
|
errorCallbackURL?: string | undefined;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentgrowth/content-auth",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"description": "Better Auth wrapper with UI components for Cloudflare Workers & Pages. Includes custom schema mapping, Turnstile bot protection, and email normalization.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|