Setup/UpgradeData.php
private function encryptAllRefreshTokens()
    {
        $userCollection = $this->userCollectionFactory->create()
            ->addFieldToFilter('refresh_token', ['notnull' => true]);

        foreach ($userCollection as $user) {
            $this->encryptAndSaveRefreshToken($user);
        }
    }
private function encryptAllRefreshTokens()
    {
        $userCollection = $this->userCollectionFactory->create()
            ->addFieldToFilter('refresh_token', ['notnull' => true]);

        foreach ($userCollection as $user) {
            $this->encryptAndSaveRefreshToken($user);
        }
    }
private function encryptAllRefreshTokens ( ) { $ userCollection = $ this -> userCollectionFactory -> create ( ) -> addFieldToFilter ( 'refresh_token' , [ 'notnull' => true ] ) ; foreach ( $ userCollection as $ user ) { $ this -> encryptAndSaveRefreshToken ( $ user ) ; } }
Encrypt all tokens
Encrypt all tokens