private function resetAuthenticationKey(AuthenticationRecordInterface $auth): AuthenticationRecordInterface
    {
        $key = KeyFactory::generateEncryptionKey();
        $auth->setSessionKey($key->getRawKeyMaterial());
        $this->authenticationProvider->update($auth);

        return $auth;
    }
private function resetAuthenticationKey(AuthenticationRecordInterface $auth): AuthenticationRecordInterface
    {
        $key = KeyFactory::generateEncryptionKey();
        $auth->setSessionKey($key->getRawKeyMaterial());
        $this->authenticationProvider->update($auth);

        return $auth;
    }
private function resetAuthenticationKey ( AuthenticationRecordInterface $ auth ) : AuthenticationRecordInterface { $ key = KeyFactory :: generateEncryptionKey ( ) ; $ auth -> setSessionKey ( $ key -> getRawKeyMaterial ( ) ) ; $ this -> authenticationProvider -> update ( $ auth ) ; return $ auth ; }
Resalt a user's authentication table salt

@param AuthenticationRecordInterface $auth

@return AuthenticationRecordInterface
Resalt a user s authentication table salt