()
| 783 | } |
| 784 | |
| 785 | protected static function loadRememberTokenStore(): array |
| 786 | { |
| 787 | $tokFile = USERS_DIR . 'persistent_tokens.json'; |
| 788 | if (!file_exists($tokFile)) { |
| 789 | return []; |
| 790 | } |
| 791 | |
| 792 | $encrypted = file_get_contents($tokFile); |
| 793 | $json = decryptData($encrypted, $GLOBALS['encryptionKey']); |
| 794 | $decoded = ($json !== false) ? $json : $encrypted; |
| 795 | $all = json_decode($decoded, true); |
| 796 | |
| 797 | return is_array($all) ? $all : []; |
| 798 | } |
| 799 | |
| 800 | protected static function saveRememberTokenStore(array $tokens): void |
| 801 | { |
no test coverage detected