@hamak/auth 0.6.0 → 0.7.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/api/api/auth-service.d.ts +3 -3
- package/dist/api/api/index.d.ts +1 -1
- package/dist/api/api/index.js +1 -1
- package/dist/api/index.d.ts +3 -3
- package/dist/api/index.js +3 -3
- package/dist/api/tokens/index.d.ts +1 -1
- package/dist/api/tokens/index.js +1 -1
- package/dist/api/types/auth-result.d.ts +1 -1
- package/dist/api/types/index.d.ts +4 -4
- package/dist/api/types/index.js +4 -4
- package/dist/impl/index.d.ts +8 -8
- package/dist/impl/index.js +8 -8
- package/dist/impl/plugin/auth-plugin-factory.d.ts +1 -1
- package/dist/impl/plugin/auth-plugin-factory.js +8 -8
- package/dist/impl/plugin/index.d.ts +1 -1
- package/dist/impl/plugin/index.js +1 -1
- package/dist/impl/services/AuthService.d.ts +2 -2
- package/dist/impl/services/index.d.ts +1 -1
- package/dist/impl/services/index.js +1 -1
- package/dist/impl/storage/LocalTokenStorage.d.ts +2 -2
- package/dist/impl/storage/MemoryTokenStorage.d.ts +2 -2
- package/dist/impl/storage/SessionTokenStorage.d.ts +2 -2
- package/dist/impl/storage/index.d.ts +5 -5
- package/dist/impl/storage/index.js +6 -6
- package/dist/impl/store/auth-reducer.d.ts +1 -1
- package/dist/impl/store/index.d.ts +1 -1
- package/dist/impl/store/index.js +1 -1
- package/dist/impl/strategies/KeycloakStrategy.d.ts +2 -2
- package/dist/impl/strategies/KeycloakStrategy.js +2 -2
- package/dist/impl/strategies/OAuth2Strategy.d.ts +2 -2
- package/dist/impl/strategies/OAuth2Strategy.js +1 -1
- package/dist/impl/strategies/PasswordStrategy.d.ts +2 -2
- package/dist/impl/strategies/StrategyRegistry.d.ts +1 -1
- package/dist/impl/strategies/index.d.ts +4 -4
- package/dist/impl/strategies/index.js +4 -4
- package/dist/impl/utils/index.d.ts +2 -2
- package/dist/impl/utils/index.js +2 -2
- package/dist/impl/utils/jwt.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/spi/guards/AuthGuard.d.ts +1 -1
- package/dist/spi/guards/index.d.ts +1 -1
- package/dist/spi/guards/index.js +1 -1
- package/dist/spi/index.d.ts +4 -4
- package/dist/spi/index.js +4 -4
- package/dist/spi/storage/ITokenStorage.d.ts +1 -1
- package/dist/spi/storage/index.d.ts +1 -1
- package/dist/spi/storage/index.js +1 -1
- package/dist/spi/strategies/IAuthStrategy.d.ts +1 -1
- package/dist/spi/strategies/IStrategyRegistry.d.ts +1 -1
- package/dist/spi/strategies/index.d.ts +2 -2
- package/dist/spi/strategies/index.js +2 -2
- package/package.json +8 -4
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Auth Service Interface
|
|
3
3
|
* Core authentication service contract
|
|
4
4
|
*/
|
|
5
|
-
import type { User } from '../types/user';
|
|
6
|
-
import type { LoginCredentials, OAuthCallbackParams } from '../types/credentials';
|
|
7
|
-
import type { AuthResult, AuthStateCallback } from '../types/auth-result';
|
|
5
|
+
import type { User } from '../types/user.js';
|
|
6
|
+
import type { LoginCredentials, OAuthCallbackParams } from '../types/credentials.js';
|
|
7
|
+
import type { AuthResult, AuthStateCallback } from '../types/auth-result.js';
|
|
8
8
|
/**
|
|
9
9
|
* Main authentication service interface
|
|
10
10
|
*
|
package/dist/api/api/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './auth-service';
|
|
1
|
+
export * from './auth-service.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/api/api/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './auth-service';
|
|
1
|
+
export * from './auth-service.js';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pure interfaces and types for the pluggable authentication system.
|
|
5
5
|
* This layer contains no implementation - only contracts.
|
|
6
6
|
*/
|
|
7
|
-
export * from './tokens';
|
|
8
|
-
export * from './types';
|
|
9
|
-
export * from './api';
|
|
7
|
+
export * from './tokens/index.js';
|
|
8
|
+
export * from './types/index.js';
|
|
9
|
+
export * from './api/index.js';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/api/index.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* This layer contains no implementation - only contracts.
|
|
6
6
|
*/
|
|
7
7
|
// Service tokens
|
|
8
|
-
export * from './tokens';
|
|
8
|
+
export * from './tokens/index.js';
|
|
9
9
|
// Type definitions
|
|
10
|
-
export * from './types';
|
|
10
|
+
export * from './types/index.js';
|
|
11
11
|
// API interfaces
|
|
12
|
-
export * from './api';
|
|
12
|
+
export * from './api/index.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './service-tokens';
|
|
1
|
+
export * from './service-tokens.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/api/tokens/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './service-tokens';
|
|
1
|
+
export * from './service-tokens.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './user';
|
|
2
|
-
export * from './credentials';
|
|
3
|
-
export * from './auth-result';
|
|
4
|
-
export * from './config';
|
|
1
|
+
export * from './user.js';
|
|
2
|
+
export * from './credentials.js';
|
|
3
|
+
export * from './auth-result.js';
|
|
4
|
+
export * from './config.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/api/types/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './user';
|
|
2
|
-
export * from './credentials';
|
|
3
|
-
export * from './auth-result';
|
|
4
|
-
export * from './config';
|
|
1
|
+
export * from './user.js';
|
|
2
|
+
export * from './credentials.js';
|
|
3
|
+
export * from './auth-result.js';
|
|
4
|
+
export * from './config.js';
|
package/dist/impl/index.d.ts
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* Core implementation of the authentication system.
|
|
5
5
|
* Provides strategies, services, and plugin integration.
|
|
6
6
|
*/
|
|
7
|
-
export * from '../api';
|
|
8
|
-
export * from '../spi';
|
|
9
|
-
export * from './plugin';
|
|
10
|
-
export * from './services';
|
|
11
|
-
export * from './strategies';
|
|
12
|
-
export * from './storage';
|
|
13
|
-
export * from './store';
|
|
14
|
-
export * from './utils';
|
|
7
|
+
export * from '../api/index.js';
|
|
8
|
+
export * from '../spi/index.js';
|
|
9
|
+
export * from './plugin/index.js';
|
|
10
|
+
export * from './services/index.js';
|
|
11
|
+
export * from './strategies/index.js';
|
|
12
|
+
export * from './storage/index.js';
|
|
13
|
+
export * from './store/index.js';
|
|
14
|
+
export * from './utils/index.js';
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/impl/index.js
CHANGED
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
* Provides strategies, services, and plugin integration.
|
|
6
6
|
*/
|
|
7
7
|
// Re-export API and SPI types for convenience
|
|
8
|
-
export * from '../api';
|
|
9
|
-
export * from '../spi';
|
|
8
|
+
export * from '../api/index.js';
|
|
9
|
+
export * from '../spi/index.js';
|
|
10
10
|
// Plugin factory
|
|
11
|
-
export * from './plugin';
|
|
11
|
+
export * from './plugin/index.js';
|
|
12
12
|
// Services
|
|
13
|
-
export * from './services';
|
|
13
|
+
export * from './services/index.js';
|
|
14
14
|
// Strategies
|
|
15
|
-
export * from './strategies';
|
|
15
|
+
export * from './strategies/index.js';
|
|
16
16
|
// Storage
|
|
17
|
-
export * from './storage';
|
|
17
|
+
export * from './storage/index.js';
|
|
18
18
|
// Store
|
|
19
|
-
export * from './store';
|
|
19
|
+
export * from './store/index.js';
|
|
20
20
|
// Utilities
|
|
21
|
-
export * from './utils';
|
|
21
|
+
export * from './utils/index.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Creates the authentication plugin for the microkernel
|
|
4
4
|
*/
|
|
5
5
|
import type { PluginModule } from '@hamak/microkernel-spi';
|
|
6
|
-
import type { AuthPluginConfig, IAuthService } from '../../api';
|
|
6
|
+
import type { AuthPluginConfig, IAuthService } from '../../api/index.js';
|
|
7
7
|
/**
|
|
8
8
|
* Create the auth plugin
|
|
9
9
|
*
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* Auth Plugin Factory
|
|
3
3
|
* Creates the authentication plugin for the microkernel
|
|
4
4
|
*/
|
|
5
|
-
import { AUTH_SERVICE_TOKEN, AUTH_STRATEGY_REGISTRY_TOKEN, TOKEN_STORAGE_TOKEN } from '../../api';
|
|
6
|
-
import { AuthService } from '../services/AuthService';
|
|
7
|
-
import { StrategyRegistry } from '../strategies/StrategyRegistry';
|
|
8
|
-
import { PasswordStrategy } from '../strategies/PasswordStrategy';
|
|
9
|
-
import { OAuth2Strategy } from '../strategies/OAuth2Strategy';
|
|
10
|
-
import { KeycloakStrategy } from '../strategies/KeycloakStrategy';
|
|
11
|
-
import { createTokenStorage } from '../storage';
|
|
12
|
-
import { authReducer } from '../store/auth-reducer';
|
|
5
|
+
import { AUTH_SERVICE_TOKEN, AUTH_STRATEGY_REGISTRY_TOKEN, TOKEN_STORAGE_TOKEN } from '../../api/index.js';
|
|
6
|
+
import { AuthService } from '../services/AuthService.js';
|
|
7
|
+
import { StrategyRegistry } from '../strategies/StrategyRegistry.js';
|
|
8
|
+
import { PasswordStrategy } from '../strategies/PasswordStrategy.js';
|
|
9
|
+
import { OAuth2Strategy } from '../strategies/OAuth2Strategy.js';
|
|
10
|
+
import { KeycloakStrategy } from '../strategies/KeycloakStrategy.js';
|
|
11
|
+
import { createTokenStorage } from '../storage/index.js';
|
|
12
|
+
import { authReducer } from '../store/auth-reducer.js';
|
|
13
13
|
/**
|
|
14
14
|
* Store extensions registry token (from ui-store)
|
|
15
15
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './auth-plugin-factory';
|
|
1
|
+
export * from './auth-plugin-factory.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './auth-plugin-factory';
|
|
1
|
+
export * from './auth-plugin-factory.js';
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Auth Service Implementation
|
|
3
3
|
* Core authentication service that orchestrates strategies and storage
|
|
4
4
|
*/
|
|
5
|
-
import type { AuthResult, AuthStateCallback, IAuthService, LoginCredentials, OAuthCallbackParams, User } from '../../api';
|
|
6
|
-
import type { IStrategyRegistry, ITokenStorage } from '../../spi';
|
|
5
|
+
import type { AuthResult, AuthStateCallback, IAuthService, LoginCredentials, OAuthCallbackParams, User } from '../../api/index.js';
|
|
6
|
+
import type { IStrategyRegistry, ITokenStorage } from '../../spi/index.js';
|
|
7
7
|
/**
|
|
8
8
|
* Auth service implementation
|
|
9
9
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './AuthService';
|
|
1
|
+
export * from './AuthService.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './AuthService';
|
|
1
|
+
export * from './AuthService.js';
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Local Storage Token Storage Implementation
|
|
3
3
|
* Persists tokens using browser localStorage
|
|
4
4
|
*/
|
|
5
|
-
import type { User } from '../../api';
|
|
6
|
-
import type { ITokenStorage, StoredTokens, TokenStorageConfig } from '../../spi';
|
|
5
|
+
import type { User } from '../../api/index.js';
|
|
6
|
+
import type { ITokenStorage, StoredTokens, TokenStorageConfig } from '../../spi/index.js';
|
|
7
7
|
/**
|
|
8
8
|
* Token storage implementation using localStorage
|
|
9
9
|
*/
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Memory Token Storage Implementation
|
|
3
3
|
* Stores tokens in memory (cleared on page refresh)
|
|
4
4
|
*/
|
|
5
|
-
import type { User } from '../../api';
|
|
6
|
-
import type { ITokenStorage, StoredTokens } from '../../spi';
|
|
5
|
+
import type { User } from '../../api/index.js';
|
|
6
|
+
import type { ITokenStorage, StoredTokens } from '../../spi/index.js';
|
|
7
7
|
/**
|
|
8
8
|
* Token storage implementation using in-memory storage
|
|
9
9
|
* Tokens are cleared when the page is refreshed
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Session Storage Token Storage Implementation
|
|
3
3
|
* Persists tokens using browser sessionStorage (cleared when tab closes)
|
|
4
4
|
*/
|
|
5
|
-
import type { User } from '../../api';
|
|
6
|
-
import type { ITokenStorage, StoredTokens, TokenStorageConfig } from '../../spi';
|
|
5
|
+
import type { User } from '../../api/index.js';
|
|
6
|
+
import type { ITokenStorage, StoredTokens, TokenStorageConfig } from '../../spi/index.js';
|
|
7
7
|
/**
|
|
8
8
|
* Token storage implementation using sessionStorage
|
|
9
9
|
* Tokens are cleared when the browser tab is closed
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from './LocalTokenStorage';
|
|
2
|
-
export * from './SessionTokenStorage';
|
|
3
|
-
export * from './MemoryTokenStorage';
|
|
4
|
-
import type { TokenStorageType } from '../../api';
|
|
5
|
-
import type { ITokenStorage, TokenStorageConfig } from '../../spi';
|
|
1
|
+
export * from './LocalTokenStorage.js';
|
|
2
|
+
export * from './SessionTokenStorage.js';
|
|
3
|
+
export * from './MemoryTokenStorage.js';
|
|
4
|
+
import type { TokenStorageType } from '../../api/index.js';
|
|
5
|
+
import type { ITokenStorage, TokenStorageConfig } from '../../spi/index.js';
|
|
6
6
|
/**
|
|
7
7
|
* Factory function to create a token storage based on type
|
|
8
8
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './LocalTokenStorage';
|
|
2
|
-
export * from './SessionTokenStorage';
|
|
3
|
-
export * from './MemoryTokenStorage';
|
|
4
|
-
import { LocalTokenStorage } from './LocalTokenStorage';
|
|
5
|
-
import { SessionTokenStorage } from './SessionTokenStorage';
|
|
6
|
-
import { MemoryTokenStorage } from './MemoryTokenStorage';
|
|
1
|
+
export * from './LocalTokenStorage.js';
|
|
2
|
+
export * from './SessionTokenStorage.js';
|
|
3
|
+
export * from './MemoryTokenStorage.js';
|
|
4
|
+
import { LocalTokenStorage } from './LocalTokenStorage.js';
|
|
5
|
+
import { SessionTokenStorage } from './SessionTokenStorage.js';
|
|
6
|
+
import { MemoryTokenStorage } from './MemoryTokenStorage.js';
|
|
7
7
|
/**
|
|
8
8
|
* Factory function to create a token storage based on type
|
|
9
9
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './auth-reducer';
|
|
1
|
+
export * from './auth-reducer.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/impl/store/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './auth-reducer';
|
|
1
|
+
export * from './auth-reducer.js';
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Keycloak Authentication Strategy
|
|
3
3
|
* Implements authentication with Keycloak identity provider
|
|
4
4
|
*/
|
|
5
|
-
import type { AuthResult, KeycloakStrategyConfig, LoginCredentials, OAuthCallbackParams, User } from '../../api';
|
|
6
|
-
import type { IDirectAuthStrategy, IOAuthStrategy, IHttpClient } from '../../spi';
|
|
5
|
+
import type { AuthResult, KeycloakStrategyConfig, LoginCredentials, OAuthCallbackParams, User } from '../../api/index.js';
|
|
6
|
+
import type { IDirectAuthStrategy, IOAuthStrategy, IHttpClient } from '../../spi/index.js';
|
|
7
7
|
/**
|
|
8
8
|
* Keycloak authentication strategy
|
|
9
9
|
*
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Keycloak Authentication Strategy
|
|
3
3
|
* Implements authentication with Keycloak identity provider
|
|
4
4
|
*/
|
|
5
|
-
import { OAuth2Strategy } from './OAuth2Strategy';
|
|
6
|
-
import { extractUserFromJWT } from '../utils/jwt';
|
|
5
|
+
import { OAuth2Strategy } from './OAuth2Strategy.js';
|
|
6
|
+
import { extractUserFromJWT } from '../utils/jwt.js';
|
|
7
7
|
/**
|
|
8
8
|
* Keycloak authentication strategy
|
|
9
9
|
*
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* OAuth2 Authentication Strategy
|
|
3
3
|
* Implements OAuth2 Authorization Code flow with PKCE
|
|
4
4
|
*/
|
|
5
|
-
import type { AuthResult, LoginCredentials, OAuth2StrategyConfig, OAuthCallbackParams } from '../../api';
|
|
6
|
-
import type { IOAuthStrategy, IHttpClient } from '../../spi';
|
|
5
|
+
import type { AuthResult, LoginCredentials, OAuth2StrategyConfig, OAuthCallbackParams } from '../../api/index.js';
|
|
6
|
+
import type { IOAuthStrategy, IHttpClient } from '../../spi/index.js';
|
|
7
7
|
/**
|
|
8
8
|
* OAuth2 authentication strategy
|
|
9
9
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* OAuth2 Authentication Strategy
|
|
3
3
|
* Implements OAuth2 Authorization Code flow with PKCE
|
|
4
4
|
*/
|
|
5
|
-
import { generateState, generateCodeVerifier, generateCodeChallenge, storePKCEState, retrievePKCEState, clearPKCEState } from '../utils/pkce';
|
|
5
|
+
import { generateState, generateCodeVerifier, generateCodeChallenge, storePKCEState, retrievePKCEState, clearPKCEState } from '../utils/pkce.js';
|
|
6
6
|
/**
|
|
7
7
|
* OAuth2 authentication strategy
|
|
8
8
|
*
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Password Authentication Strategy
|
|
3
3
|
* Implements username/password based authentication
|
|
4
4
|
*/
|
|
5
|
-
import type { AuthResult, LoginCredentials, PasswordStrategyConfig } from '../../api';
|
|
6
|
-
import type { IAuthStrategy, IHttpClient } from '../../spi';
|
|
5
|
+
import type { AuthResult, LoginCredentials, PasswordStrategyConfig } from '../../api/index.js';
|
|
6
|
+
import type { IAuthStrategy, IHttpClient } from '../../spi/index.js';
|
|
7
7
|
/**
|
|
8
8
|
* Password-based authentication strategy
|
|
9
9
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Strategy Registry Implementation
|
|
3
3
|
* Registry for managing multiple authentication strategies
|
|
4
4
|
*/
|
|
5
|
-
import type { IAuthStrategy, IOAuthStrategy, IStrategyRegistry } from '../../spi';
|
|
5
|
+
import type { IAuthStrategy, IOAuthStrategy, IStrategyRegistry } from '../../spi/index.js';
|
|
6
6
|
/**
|
|
7
7
|
* Default implementation of the strategy registry
|
|
8
8
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './PasswordStrategy';
|
|
2
|
-
export * from './OAuth2Strategy';
|
|
3
|
-
export * from './KeycloakStrategy';
|
|
4
|
-
export * from './StrategyRegistry';
|
|
1
|
+
export * from './PasswordStrategy.js';
|
|
2
|
+
export * from './OAuth2Strategy.js';
|
|
3
|
+
export * from './KeycloakStrategy.js';
|
|
4
|
+
export * from './StrategyRegistry.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './PasswordStrategy';
|
|
2
|
-
export * from './OAuth2Strategy';
|
|
3
|
-
export * from './KeycloakStrategy';
|
|
4
|
-
export * from './StrategyRegistry';
|
|
1
|
+
export * from './PasswordStrategy.js';
|
|
2
|
+
export * from './OAuth2Strategy.js';
|
|
3
|
+
export * from './KeycloakStrategy.js';
|
|
4
|
+
export * from './StrategyRegistry.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './pkce';
|
|
2
|
-
export * from './jwt';
|
|
1
|
+
export * from './pkce.js';
|
|
2
|
+
export * from './jwt.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/impl/utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './pkce';
|
|
2
|
-
export * from './jwt';
|
|
1
|
+
export * from './pkce.js';
|
|
2
|
+
export * from './jwt.js';
|
package/dist/impl/utils/jwt.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './AuthGuard';
|
|
1
|
+
export * from './AuthGuard.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/spi/guards/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './AuthGuard';
|
|
1
|
+
export * from './AuthGuard.js';
|
package/dist/spi/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Contains extension points for implementing custom strategies,
|
|
6
6
|
* storage providers, and guards.
|
|
7
7
|
*/
|
|
8
|
-
export * from '../api';
|
|
9
|
-
export * from './strategies';
|
|
10
|
-
export * from './storage';
|
|
11
|
-
export * from './guards';
|
|
8
|
+
export * from '../api/index.js';
|
|
9
|
+
export * from './strategies/index.js';
|
|
10
|
+
export * from './storage/index.js';
|
|
11
|
+
export * from './guards/index.js';
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/spi/index.js
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* storage providers, and guards.
|
|
7
7
|
*/
|
|
8
8
|
// Re-export API types for convenience
|
|
9
|
-
export * from '../api';
|
|
9
|
+
export * from '../api/index.js';
|
|
10
10
|
// Strategy interfaces
|
|
11
|
-
export * from './strategies';
|
|
11
|
+
export * from './strategies/index.js';
|
|
12
12
|
// Storage interfaces
|
|
13
|
-
export * from './storage';
|
|
13
|
+
export * from './storage/index.js';
|
|
14
14
|
// Guard interfaces
|
|
15
|
-
export * from './guards';
|
|
15
|
+
export * from './guards/index.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './ITokenStorage';
|
|
1
|
+
export * from './ITokenStorage.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './ITokenStorage';
|
|
1
|
+
export * from './ITokenStorage.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Auth Strategy Interface
|
|
3
3
|
* Base interface for all authentication strategy implementations
|
|
4
4
|
*/
|
|
5
|
-
import type { AuthResult, AuthStrategyType, LoginCredentials, OAuthCallbackParams, User } from '../../api';
|
|
5
|
+
import type { AuthResult, AuthStrategyType, LoginCredentials, OAuthCallbackParams, User } from '../../api/index.js';
|
|
6
6
|
/**
|
|
7
7
|
* HTTP client interface for making auth requests
|
|
8
8
|
* This abstraction allows strategies to work with any HTTP client
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Strategy Registry Interface
|
|
3
3
|
* Registry for managing multiple authentication strategies
|
|
4
4
|
*/
|
|
5
|
-
import type { IAuthStrategy, IOAuthStrategy } from './IAuthStrategy';
|
|
5
|
+
import type { IAuthStrategy, IOAuthStrategy } from './IAuthStrategy.js';
|
|
6
6
|
/**
|
|
7
7
|
* Registry for authentication strategies
|
|
8
8
|
*
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './IAuthStrategy';
|
|
2
|
-
export * from './IStrategyRegistry';
|
|
1
|
+
export * from './IAuthStrategy.js';
|
|
2
|
+
export * from './IStrategyRegistry.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './IAuthStrategy';
|
|
2
|
-
export * from './IStrategyRegistry';
|
|
1
|
+
export * from './IAuthStrategy.js';
|
|
2
|
+
export * from './IStrategyRegistry.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hamak/auth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Auth - Complete authentication plugin with password, OAuth2, and Keycloak support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -21,8 +21,12 @@
|
|
|
21
21
|
},
|
|
22
22
|
"typesVersions": {
|
|
23
23
|
"*": {
|
|
24
|
-
"api": [
|
|
25
|
-
|
|
24
|
+
"api": [
|
|
25
|
+
"./dist/api/index.d.ts"
|
|
26
|
+
],
|
|
27
|
+
"spi": [
|
|
28
|
+
"./dist/spi/index.d.ts"
|
|
29
|
+
]
|
|
26
30
|
}
|
|
27
31
|
},
|
|
28
32
|
"files": [
|
|
@@ -37,7 +41,7 @@
|
|
|
37
41
|
"access": "public"
|
|
38
42
|
},
|
|
39
43
|
"scripts": {
|
|
40
|
-
"build": "tsc -p tsconfig.lib.json",
|
|
44
|
+
"build": "tsc -p tsconfig.lib.json && node ../../scripts/fix-esm-extensions.mjs ./dist",
|
|
41
45
|
"clean": "rm -rf dist",
|
|
42
46
|
"test": "vitest run",
|
|
43
47
|
"test:watch": "vitest"
|