Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Dogeforce/lwc-otp
OTP codes in your record screens!
https://github.com/Dogeforce/lwc-otp
Last synced: about 2 months ago
JSON representation
OTP codes in your record screens!
- Host: GitHub
- URL: https://github.com/Dogeforce/lwc-otp
- Owner: Dogeforce
- License: mit
- Created: 2021-04-25T16:05:37.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-28T14:16:01.000Z (over 1 year ago)
- Last Synced: 2024-08-02T12:21:28.261Z (5 months ago)
- Language: JavaScript
- Size: 105 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-lwc - LWC-OTP
README
# LWC OTP
[Deploy to Salesforce](https://githubsfdeploy.herokuapp.com/app/githubdeploy/Dogeforce/lwc-otp)
This component adds an OTP generator in a record page of your choice. Assuming the secret is stored in a field, that is.
Library used to calculate the code is the [jsOTP](https://github.com/jiangts/JS-OTP/).
## Screenshots
### When there's plenty of seconds to copy and paste the code elsewhere
![plenty of time](img/otp.png)
### When time is running out
![time running out](img/otp_warn.png)
## API
|Attribute|Description|
|--|--|
|Title|Title to be displayed|
|Icon name|Icon name according to the Lightning Design System naming convention.|
|Field API Name|API name of the field in the current record that stores the OTP secret.|## Limitations
At this moment there is no option to use codes that differ from the standard 30 second SHA1 6-digit defaults.