# depicter/1.6.2/app/src/Services/AuthenticationService.php

Depicter — Popup &amp; Slider Builder, version 1.6.2. 63 lines.

- Page: https://pluginprobe.com/plugins/depicter/1.6.2/code/app/src/Services/AuthenticationService.php
- Raw: https://pluginprobe.com/plugins/depicter/1.6.2/raw/app/src/Services/AuthenticationService.php
- Modified: 2023-02-09T06:22:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/depicter/1.6.2/code/app/src/Services/AuthenticationService.php#L10-L20`.

```php
<?php

namespace Depicter\Services;

class AuthenticationService {

	/**
	 * Retrieves client's tier
	 *
	 * @return string
	 */
	public function getTier(){
		return \Depicter::options()->get('user_tier', 'free-user') ?: 'free-user';
	}

	/**
	 * Whether client has not free tier or not
	 *
	 * @return bool
	 */
	public function isPaid(){
		return $this->getTier() !== 'free-user';
	}

	/**
	 * Verify if it is an activated installation or not
	 *
	 * @return bool
	 */
	public function verifyActivation(){
		return \Depicter::client()->validateActivation();
	}

	/**
	 * Whether it is an activated installation or not
	 *
	 * @return bool
	 */
	public function isActivated(){
		return $this->getActivationStatus() === 'activated';
	}

	/**
	 * Retrieves subscription activation status
	 *
	 * @return string
	 */
	public function getActivationStatus(){
		$activationStatus = \Depicter::options()->get('subscription_status', 'not-activated');
		$activationError  = \Depicter::options()->get('activation_error_message', '');
		return ( 'activated' !== $activationStatus ) && ! empty( $activationError ) ? 'error': $activationStatus;
	}

	/**
	 * Get client key
	 *
	 * @return string
	 */
	public function getClientKey(){
		return \Depicter::options()->get( 'client_key', '' );
	}
}

```
