gnss-auth
Version:
Shared singleton authorization service for Angular MFE architecture
20 lines (19 loc) • 862 B
TypeScript
import { AuthSession } from 'aws-amplify/auth';
import { ResourcesConfig } from 'aws-amplify';
import { UserLoginInterface } from './user-login.interface';
import { MessageInterface } from './message.interface';
import * as i0 from "@angular/core";
export declare class AuthService {
private configured;
private userEmail;
clearLocalStorage(debug?: boolean): void | MessageInterface;
configureAmplify(authConfig: ResourcesConfig): void;
fetchAuthSession(): Promise<AuthSession>;
isLogged(): Promise<boolean>;
logAuthSession(): Promise<void>;
logLocalStorage(): void;
userLogin(userLogin: UserLoginInterface, debug?: boolean): Promise<MessageInterface>;
logout(debug?: boolean): Promise<void>;
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
}