Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

send_otp_dev

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

send_otp_dev

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

SendOtpDev

Welcome to SendOtpDev! This gem allows you to easily send and confirm One-Time Passwords (OTP) for email, SMS, or voice authentication.

Installation

Add this line to your application's Gemfile:

gem 'send_otp_dev'

And then execute:

bundle install

Or install it yourself as:

gem install send_otp_dev

Usage / Configuration

To use the SendOtpDev gem, you'll need to configure it using your API key with an initializer in your Rails application:

# config/initializers/send_otp_dev.rb

SendOtpDev.configure do |config|
config.api_key = 'your_sendotp.dev_api_key'
end

Then, you can send an OTP like so:

SendOtpDev::Client.send_otp(email: 'user@example.com', phone_number: '1234567890', app_name: 'YourAppName')

You can also confirm an OTP like so:

SendOtpDev::Client.confirm_otp(token:1234, email: 'user@example.com', phone_number: '1234567890', app_name: 'YourAppName')

FAQs

Package last updated on 27 Feb 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc