Authentication Service

class AuthenticationService

authentication.service.ts
@Injectable({
  providedIn: 'root',
})
export class AuthenticationService {
  private readonly _loggerService = inject(LoggerService);

  private readonly _user: WritableSignal<User | null>;

  public constructor() {
    // Buy to unlock
  }

  public get user(): Signal<User | null> {
    // Buy to unlock
  }

  public login(): Promise<void> {
    // Buy to unlock
  }

  public logout(): Promise<void> {
    // Buy to unlock
  }
}

Last updated