Module: StandardId::Passwordless
- Defined in:
- lib/standard_id/passwordless.rb,
lib/standard_id/passwordless/sms_strategy.rb,
lib/standard_id/passwordless/base_strategy.rb,
lib/standard_id/passwordless/email_strategy.rb,
lib/standard_id/passwordless/verification_service.rb
Defined Under Namespace
Classes: BaseStrategy, EmailStrategy, SmsStrategy, VerificationService
Class Method Summary collapse
-
.verify(username:, code:, connection:, request:, allow_registration: true) ⇒ VerificationService::Result
Public API for verifying a passwordless OTP code.
Class Method Details
.verify(username:, code:, connection:, request:, allow_registration: true) ⇒ VerificationService::Result
Public API for verifying a passwordless OTP code.
This is the recommended entry point for host apps that need OTP verification without mounting WebEngine. It wraps VerificationService.verify with the same interface and result type.
45 46 47 48 49 50 51 52 53 |
# File 'lib/standard_id/passwordless.rb', line 45 def verify(username:, code:, connection:, request:, allow_registration: true) VerificationService.verify( connection: connection, username: username, code: code, request: request, allow_registration: allow_registration ) end |