How to Generate an Access Code in the App

Introduction

Access codes are a modern security feature that allows users to log into digital services without entering their full credentials every time. In the context of the Brazilian government's unified digital platform, gov.br, generating an access code through the official mobile app offers a fast and secure way to authenticate across multiple services. This article provides a complete guide on how to generate an access code in the gov.br app, covering the necessary prerequisites, step-by-step instructions, common troubleshooting scenarios, and practical tips. Whether you are using the app for the first time or need a refresher, this guide will help you understand the process clearly.

What is an Access Code in the gov.br App

An access code is a temporary numeric sequence generated by the gov.br app that serves as a one-time authentication token. It is typically valid for 40 to 60 seconds. The code is designed to be used in scenarios where you need to log into a service connected to gov.br but do not want to enter your CPF and password directly. For example, if you are accessing the gov.br website from a computer or using a third-party app that requires government authentication, you can generate a code on your smartphone and type it into the login field. This method relies on two-factor authentication (2FA) being active on your account, which adds an extra layer of security by requiring something you have (your phone) in addition to something you know (your password).

How to Generate an Access Code in the App - 1

Prerequisites for Generating an Access Code

Before you can generate an access code in the gov.br app, you must meet two important conditions. First, you need to have the official gov.br app installed on your smartphone. The app is available for both Android and iOS and can be downloaded from the respective app stores. Second, and most critically, you must have two-factor authentication (2FA) enabled for your gov.br account. Without 2FA, the option to generate an access code without logging in will not appear. To activate 2FA, you can go into the app settings, look for the security or verification section, and follow the steps to link your phone number or an authenticator app. Once 2FA is active, you will see the "Gerar código de acesso" button on the app's home screen when you are not logged in.

Step-by-Step Guide to Generate an Access Code

Follow these steps carefully to generate your access code. The process is straightforward and takes only a few seconds.

How to Generate an Access Code in the App - 2

First, launch the gov.br app on your smartphone. Do not enter your CPF or password on the initial login screen. Instead, look for the option labeled "Gerar código de acesso" (Generate access code). This button is usually placed prominently on the home screen. Tap it.

The app will then instantly generate a numeric code. The code appears on the screen along with a timer showing its remaining validity, which is typically around 40 to 60 seconds. You should tap the "Copiar código" (Copy code) button to copy the code to your clipboard. This step is important because the code changes rapidly, and manual typing can lead to errors.

How to Generate an Access Code in the App - 3

Now navigate to the service or website that requires authentication. Paste the copied code into the appropriate login field. Make sure to do this before the code expires. If you miss the window, you can simply generate a new code by repeating the process. After pasting, the service will verify the code and grant you access without needing your full password.

Understanding the Code Validity and Usage

The access code is designed to be temporary for security reasons. Its short lifespan, typically under one minute, ensures that even if someone intercepts the code, it becomes useless almost immediately. You can generate a new code as many times as needed. However, note that each code can only be used once. Once used, it cannot be reused even if the timer has not expired.

How to Generate an Access Code in the App - 4

A common use case is when you are logging into the gov.br website on a desktop computer. You can open the website, select the option to log in using an access code, then generate the code on your mobile app and type it into the browser. Another use case is inside third-party applications that integrate with gov.br authentication, such as educational or financial apps. In all cases, the process remains the same: generate, copy, paste, and authenticate.

Common Issues and Troubleshooting

Even with a clear process, users sometimes encounter problems. Below is a table that lists frequent issues and their solutions.

How to Generate an Access Code in the App - 5
Issue Cause Solution
Option "Gerar código de acesso" not visible Two-factor authentication is not activated Enable 2FA in your gov.br account settings under security options
Code expires before you can use it You are too slow or the code generation is delayed Copy the code immediately after it appears. Use the copy button. Generate a new code if needed
Pasted code is rejected Code was already used or typed incorrectly Generate a fresh code and paste it carefully. Ensure no extra spaces
App does not generate any code App needs update or cache issue Update the app to the latest version or clear the app cache in your phone settings
No internet connection The app requires internet to generate a code Connect to Wi-Fi or mobile data and try again

Tips for a Smooth Experience

To make the most of the access code feature, consider the following practical tips. These will help you avoid delays and frustration.

  • Always keep the gov.br app updated to the latest version to ensure you have the newest security features.
  • Enable biometric authentication on your phone so you can quickly open the app without typing your password.
  • Copy the code as soon as it appears. Do not try to memorize it; the numbers change too fast.
  • If you are using a desktop browser, keep the login page open in the same screen as your phone to reduce switching time.
  • Make sure your phone's clock is set automatically. An inaccurate clock can cause code validation failures.
  • If you generate multiple codes, only the most recent one is valid. Older codes become invalid even if their timer has not ended.
  • Test the process first on a non-critical service to become familiar with the timing.

Conclusion

Generating an access code in the gov.br app is a simple yet powerful way to log into government services without repeatedly exposing your password. The process requires only that you have two-factor authentication enabled and the app installed. By following the step-by-step instructions, you can generate and use a temporary code in less than a minute. The short validity period and one-time use make this method highly secure. Remember to copy the code immediately and paste it before it expires. If you encounter any issues, refer to the troubleshooting table above. With a little practice, generating an access code will become a seamless part of your digital routine.

References

For more detailed information and official guidance, consult the following sources. The first is the official support page from the Central Bank of Brazil, which explains how to activate two-factor authentication and generate the access code. You can access it at BCB gov.br FAQ. The second source is the help page from the Court of Accounts of the State of Espírito Santo, which provides step-by-step instructions for generating the code without entering your credentials. Find it at TCEES help guide. These official resources confirm all details mentioned in this article, including the requirement of 2FA and the 40 to 60 second code validity. Additional information is available in the official gov.br FAQ on account access.

access code app tutorial login security mobile app
Notice This guide is for general informational purposes only and may vary by app version.
Author

Stefano Barcellos

Contributor at Visite Barbados.

« Previous post
Access the Online System Easily and Securely

Related posts