Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peterdee/2fa-mobile
2FA Mobile is used to generate OTPs for 2FA-enabled resources
https://github.com/peterdee/2fa-mobile
2fa 2fa-mobile expo otp qrcode react-native react-native-reanimated redux-toolkit totp typescript
Last synced: about 22 hours ago
JSON representation
2FA Mobile is used to generate OTPs for 2FA-enabled resources
- Host: GitHub
- URL: https://github.com/peterdee/2fa-mobile
- Owner: peterdee
- License: mit
- Created: 2022-04-13T06:40:50.000Z (almost 3 years ago)
- Default Branch: release
- Last Pushed: 2022-10-05T08:01:43.000Z (over 2 years ago)
- Last Synced: 2024-11-20T14:51:02.956Z (2 months ago)
- Topics: 2fa, 2fa-mobile, expo, otp, qrcode, react-native, react-native-reanimated, redux-toolkit, totp, typescript
- Language: TypeScript
- Homepage:
- Size: 1.73 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## 2FA Mobile
2FA Mobile is used to generate [OTPs](https://datatracker.ietf.org/doc/html/rfc6238#page-9) for 2FA-enabled resources
QR codes for the testing can be generated with [2FA Generator](https://github.com/peterdee/2fa-generator)
### Additional project applications
2FA Backend application: https://github.com/peterdee/2fa-backend
2FA Generator application: https://github.com/peterdee/2fa-generator
2FA WEB application: https://github.com/peterdee/2fa-web
### Required resources
Application requires an access to the camera in order to be able to scan the QR code
### Deploy
```shell script
git clone https://github.com/peterdee/2fa-mobile
cd ./2fa-mobile
nvm use 16
npm i
```### Environment variables & required files
The `.env` file is **required**, see [.env.example](.env.example) for details
The `backend-url.ts` file in the `constants` directory is also **required**, it can be automatically generated if the project is launched with `npm start`, or it can be manually created, see [backend-url.example.ts](constants/backend-url.example.ts) for details
### Launch
Launch development server:
```shell script
npm start
```Launch on Android emulator:
```shell script
npm run android
```Launch on iOS emulator:
```shell script
npm run ios
```### License
[MIT](./LICENSE.md)