@absolutejs/auth 0.55.4 → 0.55.5
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/server.d.ts +4 -3
- package/dist/server.js.map +1 -1
- package/dist/serverConfig.d.ts +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AuthConfig as CompleteAuthConfig } from './types';
|
|
2
|
+
type CoreAuthConfigKey = 'audit' | 'authSessionStore' | 'getUser' | 'onCallbackSuccess' | 'onSessionCleanup' | 'providersConfiguration' | 'sessionDurationMs' | 'sessions';
|
|
3
|
+
/**
|
|
4
|
+
* Declaration-stable subset for the common server integration. Optional Auth
|
|
5
|
+
* features remain accepted through the open property surface; applications
|
|
6
|
+
* that need contextual typing for those features can import `AuthConfig` from
|
|
7
|
+
* the package root.
|
|
8
|
+
*/
|
|
9
|
+
export type ServerAuthConfig<UserType> = Pick<CompleteAuthConfig<UserType>, CoreAuthConfigKey> & Record<string, unknown>;
|
|
10
|
+
export {};
|
package/package.json
CHANGED