Google Drive two-factor authenticate doesnt work

Hi,
i downloaded 5.2 LO via snap in Ubuntu 16.04. When i try to save anything to Google Drive i put my Google data, then box G-________ is shown. I put code from Google Authenticator (set via barcode) but it shows “invalid device” response. Is there any way to set this feature?
Thanks,
Jakub.