> For the complete documentation index, see [llms.txt](https://wiki.onfa.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.onfa.io/vn/tai-khoan/xac-thuc-qua-google.md).

# Xác thực qua Google

> **🔒 Tại sao nên bật 2FA?**
>
> * Tăng cường bảo mật tài khoản ONFA của bạn
> * Ngăn chặn truy cập trái phép dù lộ mật khẩu
> * Bắt buộc nhập mã OTP từ ứng dụng mỗi khi đăng nhập

## A. Cách Thiết Lập 2FA

1. **Cài đặt ứng dụng xác thực**

* Tải **Google Authenticator** từ:
  * [App Store](https://apps.apple.com/app/google-authenticator/id388497605) (iOS)
  * [Google Play](https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2) (Android)
* Mở ứng dụng → Chọn **"+"** → Chọn **"Quét mã QR"** hoặc **"Nhập mã thiết lập"**

2. Đăng nhập ONFA → Vào **"Xác thực qua Google (2FA)"**
3. Quét **mã QR** hiển thị trên màn hình ONFA bằng ứng dụng Authenticator\
   \&#xNAN;*(Hoặc nhập thủ công mã cung cấp nếu không quét được)*

<figure><img src="/files/HA1EZJh4pRMFIO90ILdj" alt="" width="375"><figcaption></figcaption></figure>

4. **Lấy mã xác thực**

* Ứng dụng sẽ hiện **mã 6 số** (thay đổi mỗi 30 giây)
* Nhập mã này vào ô **"Mã xác thực Google"** trên ONFA

<figure><img src="/files/hzlFTVhXF4H6CuDEa5vD" alt=""><figcaption></figcaption></figure>

5. Nhấn **"Bật xác thực 2 yếu tố"** để hoàn tất

<figure><img src="/files/LHYNQI00u1RoKkR2aNuu" alt="" width="237"><figcaption></figcaption></figure>

> #### **⚠️ LƯU Ý QUAN TRỌNG**
>
> * Mã 2FA **chỉ có hiệu lực trong 30 giây** - nhập nhanh để tránh lỗi
> * Nếu mã hết hạn, đợi mã mới xuất hiện trên ứng dụng
> * **Lưu mã dự phòng** (backup code) ở nơi an toàn phòng khi mất thiết bị
> * Không chia sẻ mã 2FA với bất kỳ ai


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://wiki.onfa.io/vn/tai-khoan/xac-thuc-qua-google.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
