@finueva/auth 0.1.0
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/LICENSE +21 -0
- package/README.md +50 -0
- package/THIRD_PARTY_NOTICES.md +100 -0
- package/dist/errors-C-cHFWC7.d.ts +55 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2438 -0
- package/dist/server.d.ts +21 -0
- package/dist/server.js +711 -0
- package/package.json +57 -0
package/dist/server.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { a as AuthSession, c as DriveCredentialInput, n as AuthErrorCode, o as AuthUser, r as AuthErrorStatus, s as DriveCredential, t as AuthError, u as PersonalWorkspaceSelection } from "./errors-C-cHFWC7.js";
|
|
2
|
+
//#region src/server.d.ts
|
|
3
|
+
interface ServerAuthOptions {
|
|
4
|
+
authOrigin: string;
|
|
5
|
+
appOrigin: string;
|
|
6
|
+
request: Request;
|
|
7
|
+
fetch?: typeof globalThis.fetch;
|
|
8
|
+
now?: () => number;
|
|
9
|
+
timeoutMs?: number;
|
|
10
|
+
}
|
|
11
|
+
interface ServerSignOutResult {
|
|
12
|
+
applyCookies(headers: Headers): void;
|
|
13
|
+
}
|
|
14
|
+
interface FinuevaServerAuth {
|
|
15
|
+
getSession(): Promise<AuthSession | null>;
|
|
16
|
+
getDriveCredential(input: DriveCredentialInput): Promise<DriveCredential>;
|
|
17
|
+
signOut(): Promise<ServerSignOutResult>;
|
|
18
|
+
}
|
|
19
|
+
declare function createServerAuth(options: ServerAuthOptions): FinuevaServerAuth;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { AuthError, type AuthErrorCode, type AuthErrorStatus, type AuthSession, type AuthUser, type DriveCredential, type DriveCredentialInput, FinuevaServerAuth, type PersonalWorkspaceSelection, ServerAuthOptions, ServerSignOutResult, createServerAuth };
|