projects/netgrif-components-core/src/lib/authentication/store/authentication.state.ts
Properties |
error |
error:
|
Type : string | null
|
isAuthenticated |
isAuthenticated:
|
Type : boolean
|
session |
session:
|
Type : string
|
export const AUTHENTICATION_FEATURE_KEY = 'nae-auth';
export interface AuthState {
isAuthenticated: boolean;
session: string;
error: string | null;
}
export const initialState: AuthState = {
isAuthenticated: false,
session: null,
error: null
};
export function getInitial(): AuthState {
return initialState;
}