diff --git a/lib/core/src/lib/auth/index.ts b/lib/core/src/lib/auth/index.ts index 07d12dd664..54beb1a252 100644 --- a/lib/core/src/lib/auth/index.ts +++ b/lib/core/src/lib/auth/index.ts @@ -15,4 +15,4 @@ * limitations under the License. */ -export * from './public-api2'; +export * from './public-api'; diff --git a/lib/core/src/lib/auth/oidc/oidc-authentication.service.ts b/lib/core/src/lib/auth/oidc/oidc-authentication.service.ts index f9e8562e49..8be96ba366 100644 --- a/lib/core/src/lib/auth/oidc/oidc-authentication.service.ts +++ b/lib/core/src/lib/auth/oidc/oidc-authentication.service.ts @@ -59,10 +59,6 @@ export class OidcAuthenticationService extends BaseAuthenticationService { return false; } - isLoggedIn(): boolean { - return this.oauthService.hasValidAccessToken() && this.oauthService.hasValidIdToken(); - } - hasValidAccessToken(): boolean { return this.oauthService.hasValidAccessToken(); } diff --git a/lib/core/src/lib/auth/oidc/public-api.ts b/lib/core/src/lib/auth/oidc/public-api.ts index 848e01b8f7..969076ddb2 100644 --- a/lib/core/src/lib/auth/oidc/public-api.ts +++ b/lib/core/src/lib/auth/oidc/public-api.ts @@ -17,8 +17,8 @@ export * from './auth-routing.module'; export * from './auth.module'; -// export * from './auth.service'; -// export * from './oidc-auth.guard'; +export * from './auth.service'; +export * from './oidc-auth.guard'; export * from './redirect-auth.service'; export * from './view/authentication-confirmation/authentication-confirmation.component'; export * from './oidc-authentication.service'; diff --git a/lib/core/src/lib/auth/services/base-authentication.service.ts b/lib/core/src/lib/auth/services/base-authentication.service.ts index e4b50272c2..3985d3bbe9 100644 --- a/lib/core/src/lib/auth/services/base-authentication.service.ts +++ b/lib/core/src/lib/auth/services/base-authentication.service.ts @@ -43,7 +43,7 @@ export abstract class BaseAuthenticationService implements AuthenticationService abstract getToken(): string; - abstract isLoggedIn(): boolean; + abstract isLoggedInNew(): boolean; abstract logout(): any;