Thanks for posting your question in the Microsoft Q&A forum.
The authenticator app relies on time-based codes (TOTP - Time-based One-Time Password). Ensure that the time on your device where the authenticator app is installed is synchronized accurately. Incorrect time settings can lead to code generation issues.
** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **