@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 CHANGED
@@ -1,18 +1,19 @@
1
1
  import type { AuthInstance } from './authInstance';
2
- import type { AuthConfig } from './types';
2
+ import type { ServerAuthConfig } from './serverConfig';
3
3
  /**
4
4
  * Create the complete AbsoluteJS auth application through a declaration-stable
5
5
  * server entry point. Import this subpath in server applications so TypeScript
6
6
  * does not need to load declarations for every optional Auth feature.
7
7
  */
8
- export declare const auth: <UserType>(config: AuthConfig<UserType>) => Promise<AuthInstance<UserType>>;
8
+ export declare const auth: <UserType>(config: ServerAuthConfig<UserType>) => Promise<AuthInstance<UserType>>;
9
9
  export type { AuthInstance } from './authInstance';
10
10
  export type { AuditSink } from './audit/types';
11
11
  export { protectRoutePlugin } from './routes/protectRoute';
12
12
  export type { AuthSessionStore } from './session/types';
13
13
  export { isUserSessionId } from './typeGuards';
14
14
  export { userSessionIdTypebox } from './typebox';
15
- export type { AuthConfig, OAuth2ConfigurationOptions, SessionData, UnregisteredSessionData, UserSessionId } from './types';
15
+ export type { OAuth2ConfigurationOptions, SessionData, UnregisteredSessionData, UserSessionId } from './types';
16
+ export type { ServerAuthConfig as AuthConfig } from './serverConfig';
16
17
  export { instantiateUserSession } from './utils';
17
18
  export type { OAuth2TokenResponse, ProviderOption } from 'citra';
18
19
  export { extractPropFromIdentity, isValidProviderOption, providers } from 'citra';