Skip to content

Commit 2e03119

Browse files
chore: wip
1 parent d9e9374 commit 2e03119

File tree

13 files changed

+5
-16
lines changed

13 files changed

+5
-16
lines changed

bun.lockb

-9.11 KB
Binary file not shown.

storage/framework/core/auth/src/passkey.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ export async function setCurrentRegistrationOptions(
4646
verified: VerifiedRegistrationResponse,
4747
): Promise<void> {
4848
const passkeyData: PasskeyInsertable = {
49-
id: verified.registrationInfo?.credentialID || '',
50-
cred_public_key: JSON.stringify(verified.registrationInfo?.credentialPublicKey), // Convert to JSON string if needed
49+
id: verified.registrationInfo?.credential.id || '',
50+
cred_public_key: JSON.stringify(verified.registrationInfo?.credential.publicKey), // Convert to JSON string if needed
5151
user_id: user.id as number,
5252
webauthn_user_id: user.email || '',
53-
counter: verified.registrationInfo?.counter || 0,
54-
credential_type: verified.registrationInfo?.credentialType || '',
53+
counter: verified.registrationInfo?.credential.counter || 0,
54+
credential_type: verified.registrationInfo?.c || '',
5555
device_type: verified.registrationInfo?.credentialDeviceType || '',
5656
backup_eligible: false,
5757
backup_status: verified.registrationInfo?.credentialBackedUp || false,

storage/framework/core/orm/src/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,6 @@ export async function generateModelString(
11361136
// import { Kysely, MysqlDialect, PostgresDialect } from 'kysely'
11371137
// import { Pool } from 'pg'
11381138
1139-
// TODO: we need an action that auto-generates these table interfaces
11401139
export interface ${formattedTableName}Table {
11411140
id: Generated<number>
11421141
${fieldString}

storage/framework/core/types/src/router.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { Action } from '@stacksjs/actions'
22

3-
type ActionPath = string // TODO: narrow this by automating its generation
4-
3+
type ActionPath = string
54
// need to refactor before, after, view to be a part of some other type
65
export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'before' | 'after' | 'view'
76

storage/framework/orm/src/models/AccessToken.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import Team from './Team'
77
// import { Kysely, MysqlDialect, PostgresDialect } from 'kysely'
88
// import { Pool } from 'pg'
99

10-
// TODO: we need an action that auto-generates these table interfaces
1110
export interface PersonalAccessTokensTable {
1211
id: Generated<number>
1312
name?: string

storage/framework/orm/src/models/Deployment.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import User from './User'
77
// import { Kysely, MysqlDialect, PostgresDialect } from 'kysely'
88
// import { Pool } from 'pg'
99

10-
// TODO: we need an action that auto-generates these table interfaces
1110
export interface DeploymentsTable {
1211
id: Generated<number>
1312
commit_sha?: string

storage/framework/orm/src/models/Post.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import User from './User'
77
// import { Kysely, MysqlDialect, PostgresDialect } from 'kysely'
88
// import { Pool } from 'pg'
99

10-
// TODO: we need an action that auto-generates these table interfaces
1110
export interface PostsTable {
1211
id: Generated<number>
1312
title?: string

storage/framework/orm/src/models/Project.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { HttpError } from '@stacksjs/error-handling'
66
// import { Kysely, MysqlDialect, PostgresDialect } from 'kysely'
77
// import { Pool } from 'pg'
88

9-
// TODO: we need an action that auto-generates these table interfaces
109
export interface ProjectsTable {
1110
id: Generated<number>
1211
name?: string

storage/framework/orm/src/models/Release.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { HttpError } from '@stacksjs/error-handling'
66
// import { Kysely, MysqlDialect, PostgresDialect } from 'kysely'
77
// import { Pool } from 'pg'
88

9-
// TODO: we need an action that auto-generates these table interfaces
109
export interface ReleasesTable {
1110
id: Generated<number>
1211
version?: string

storage/framework/orm/src/models/Subscriber.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { HttpError } from '@stacksjs/error-handling'
66
// import { Kysely, MysqlDialect, PostgresDialect } from 'kysely'
77
// import { Pool } from 'pg'
88

9-
// TODO: we need an action that auto-generates these table interfaces
109
export interface SubscribersTable {
1110
id: Generated<number>
1211
subscribed?: boolean

0 commit comments

Comments
 (0)