@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.
@@ -1,10 +1,10 @@
1
- import { type TeamModel } from "../../../orm/src/models/Team";
2
- interface Credentials {
3
- password: string | undefined;
4
- [key: string]: string | undefined;
1
+ declare interface Credentials {
2
+ password: string | undefined
3
+ [key: string]: string | undefined
5
4
  }
6
- type AuthToken = `${number}:${number}:${string}`;
5
+ declare type AuthToken = `${number}:${number}:${string}`
6
+
7
+ const authConfig = { username: 'email', password: 'password' }
7
8
  export declare function attempt(credentials: Credentials): Promise<boolean>;
8
9
  export declare function team(): Promise<TeamModel | undefined>;
9
- export declare function authToken(): Promise<AuthToken | undefined>;
10
- export {};
10
+ export declare function authToken(): Promise<AuthToken | undefined>;
@@ -1,6 +1,6 @@
1
1
  export declare function generateTwoFactorSecret(): string;
2
- export type Token = string;
3
- export type Secret = string;
2
+ export declare type Token = string
3
+ export type Secret = string
4
4
  export declare function generateTwoFactorToken(): Token;
5
5
  export declare function verifyTwoFactorCode(token: Token, secret: Secret): boolean;
6
- export declare function generateQrCode(): void;
6
+ export declare function generateQrCode(): void;
Binary file
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./authentication";
2
- export * from "./authenticator";
3
- export * from "./passkey";
1
+ export * from './authentication'
2
+ export * from './authenticator'
3
+ export * from './passkey'