@stacksjs/auth 0.67.0 → 0.68.1

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/passkey.d.ts CHANGED
@@ -1,21 +1,26 @@
1
- import type { VerifiedRegistrationResponse } from "@simplewebauthn/server";
2
- import type { UserModel } from "../../../orm/src/models/User";
3
- export { generateAuthenticationOptions, generateRegistrationOptions, verifyAuthenticationResponse, verifyRegistrationResponse } from "@simplewebauthn/server";
4
- export type * from "@simplewebauthn/types";
5
- export interface PasskeyAttribute {
6
- id: string;
7
- cred_public_key: string;
8
- user_id: number;
9
- webauthn_user_id: string;
10
- counter: number;
11
- credential_type: string;
12
- device_type: string;
13
- backup_eligible: boolean;
14
- backup_status: boolean;
15
- transports?: string;
16
- created_at?: Date;
17
- last_used_at: string;
1
+ import type { Insertable } from '@stacksjs/database';
2
+ import type { UserModel } from '../../../orm/src/models/User';
3
+ import type { VerifiedRegistrationResponse } from '@simplewebauthn/server';
4
+
5
+ export {
6
+ export declare type * from '@simplewebauthn/types'
7
+
8
+ type PasskeyInsertable = Insertable<PasskeyAttribute>
9
+ export declare interface PasskeyAttribute {
10
+ id: string
11
+ cred_public_key: string
12
+ user_id: number
13
+ webauthn_user_id: string
14
+ counter: number
15
+ credential_type: string
16
+ device_type: string
17
+ backup_eligible: boolean
18
+ backup_status: boolean
19
+ transports?: string
20
+ created_at?: Date
21
+ last_used_at: string
18
22
  }
19
23
  export declare function getUserPasskeys(userId: number): Promise<PasskeyAttribute[]>;
20
24
  export declare function getUserPasskey(userId: number, passkeyId: string): Promise<PasskeyAttribute | undefined>;
21
- export declare function setCurrentRegistrationOptions(user: UserModel, verified: VerifiedRegistrationResponse): Promise<void>;
25
+ export declare function setCurrentRegistrationOptions(user: UserModel, verified: VerifiedRegistrationResponse,): Promise<void>;
26
+ declare function formatDateTime(): string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/auth",
3
3
  "type": "module",
4
- "version": "0.67.0",
4
+ "version": "0.68.1",
5
5
  "description": "A more simplistic way to authenticate.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": ["Chris Breuer <chris@stacksjs.org>"],