calcTokenId() calcTokenId(int $uid, string $username) : string calculates JWT token id Parameters int $uid string $username Returns string —
tokenIsActive() tokenIsActive(\Lcobucci\JWT\Token $token) : bool checks if token is still active Parameters \Lcobucci\JWT\Token $token Throws \DI\DependencyException \DI\NotFoundException Returns bool —
getCurrentUser() getCurrentUser(bool $reset = false) : \App\Site\Models\User|\App\Site\Models\GuestUser|null gets current user Parameters bool $reset Throws \DI\DependencyException \DI\NotFoundException Returns \App\Site\Models\User|\App\Site\Models\GuestUser|null —
checkPermission() checkPermission(string $permission_name) : bool checks if current user has specified permission Parameters string $permission_name Throws \Degami\Basics\Exceptions\BasicException Returns bool —
hasLoggedUser() hasLoggedUser() : bool checks if user is logged in Throws \DI\DependencyException \DI\NotFoundException Returns bool —
isHomePage() isHomePage() : bool checks if current is homepage Throws \Degami\Basics\Exceptions\BasicException \DI\DependencyException \DI\NotFoundException \Phpfastcache\Exceptions\PhpfastcacheSimpleCacheException Returns bool —
getToken() getToken() : \Lcobucci\JWT\Token gets Authorization token Object Returns \Lcobucci\JWT\Token —
getTokenValidationData() getTokenValidationData( $token) : \Lcobucci\JWT\ValidationData gets token validation data Parameters $token Throws \DI\DependencyException \DI\NotFoundException Returns \Lcobucci\JWT\ValidationData —