Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
capacitor-sms-retriever
Advanced tools
Readme
With the SMS Retriever API, you can perform SMS-based user verification in your Android app automatically, without requiring the user to manually type verification codes, and without requiring any extra app permissions.
npm install capacitor-sms-retriever
npx cap sync
getAppSignature()
requestPhoneNumber()
startSmsReceiver()
removeSmsReceiver()
addListener('onSmsReceive', ...)
getAppSignature() => Promise<AppSignature>
This is a helper method to generate your message hash to be included in your SMS message. Without the correct hash, your app won't receive the message callback. This only needs to be generated once per app and stored.
Note: Do not use hash strings dynamically computed on the client in your verification messages.
Returns: Promise<AppSignature>
Since: 0.1.0
requestPhoneNumber() => Promise<HintPhoneNumber>
Initiate hint picker to prompt the user to choose from the phone numbers stored on the device.
Returns: Promise<HintPhoneNumber>
Since: 0.1.0
startSmsReceiver() => Promise<RegisterReceiver>
Start to listen for SMS messages.
Returns: Promise<RegisterReceiver>
Since: 0.1.0
removeSmsReceiver() => Promise<void>
Stop to listen for SMS messages.
Since: 0.1.0
addListener(eventName: 'onSmsReceive', listenerFunc: (receivedMessage: ReceivedMessage) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
Listen for when SMS is coming
Param | Type |
---|---|
eventName | 'onSmsReceive' |
listenerFunc | (receivedMessage: ReceivedMessage) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
Since: 0.1.0
Prop | Type | Description | Since |
---|---|---|---|
signature | string | App signature. | 0.1.0 |
Prop | Type | Description | Since |
---|---|---|---|
phoneNumber | string | Phone number user selected | 0.1.0 |
Prop | Type | Description | Since |
---|---|---|---|
isRegistered | boolean | Returns if register receiver started or not. | 0.1.0 |
Prop | Type |
---|---|
remove | () => Promise<void> |
Prop | Type | Description | Since |
---|---|---|---|
message | string | Received message with hash | 0.1.0 |
error | string | In case of any error | 0.1.0 |
FAQs
Android SMS Retriever API for Capacitor.
The npm package capacitor-sms-retriever receives a total of 13 weekly downloads. As such, capacitor-sms-retriever popularity was classified as not popular.
We found that capacitor-sms-retriever demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.