None if you keep it offline
I'm gonna have to ask you to elaborate:
how can I keep it offline? I need to keep the device online to receive the code, right?
2fa codes are usually time based. As long as the system time on the device is correct it should be able to generate a matching code
OP never said how they got the codes. Could be SMS.
You can use an OTP Generator like Aegis Authenticator from F-Droid. Afaik it even works offline, so there should be no risk if you strictly keep it offline.
Why would an OTP generator even need connection to anything?
Cloud backup or to download images for the services the code links to.
Both are optional with Aegis, I use Aegis also.
You are basically fine, especially if the phone is offline as another poster says, and if you don't have too much potential malware installed. For really high end authentication you wouldn't want to use a phone in the first place.
Another issue is that if you're using a phone 2fa app to authenticate a browser on the same phone that has a password manager, that is not really 2fa. You want the second factor to be on a separate device.
If it's not receiving security patches then it's not a good candidate to use for 2factor. Risks are low but anything without security patches becomes a minor speed bump to bypass as published exploits will likely exist that are trivial to implement.
Is it not supported by lineage os?
Android
DROID DOES
Welcome to the droidymcdroidface-iest, Lemmyest (Lemmiest), test, bestest, phoniest, pluckiest, snarkiest, and spiciest Android community on Lemmy (Do not respond)! Here you can participate in amazing discussions and events relating to all things Android.
The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:
Rules
1. All posts must be relevant to Android devices/operating system.
2. Posts cannot be illegal or NSFW material.
3. No spam, self promotion, or upvote farming. Sources engaging in these behavior will be added to the Blacklist.
4. Non-whitelisted bots will be banned.
5. Engage respectfully: Harassment, flamebaiting, bad faith engagement, or agenda posting will result in your posts being removed. Excessive violations will result in temporary or permanent ban, depending on severity.
6. Memes are not allowed to be posts, but are allowed in the comments.
7. Posts from clickbait sources are heavily discouraged. Please de-clickbait titles if it needs to be submitted.
8. Submission statements of any length composed of your own thoughts inside the post text field are mandatory for any microblog posts, and are optional but recommended for article/image/video posts.
Community Resources:
We are Android girls*,
In our Lemmy.world.
The back is plastic,
It's fantastic.
*Well, not just girls: people of all gender identities are welcomed here.
Our Partner Communities: