Google Authenticator doesn't natively support using the front camera of your mobile device, which becomes essential when the primary camera isn't functional. To bypass this limitation, you can follow the instructions below.
Using a QR Reader app you will be able to scan the barcode using your front camera, after which you will be shown a link like this:
This link can be then used within the
manual code entry in the google authenticator.