class Gems::WebAuthnVerification

A WebAuthn verification, which gives an account that signs in with a security key a one-time passcode

The verification is opened in a browser at its {#path}, where the security key is used, and {API::ProfileEndpoints#webauthn_verification_status} answers with the one-time passcode once it has been, as ‘gem push` asks for it for an account whose multi-factor authentication is a security key. The path is a link for the account alone, so it is left out of {#inspect}.

@api public

Public Instance Methods

The token of the verification, which its status is asked for by

@api public @return [String, nil] the token, which is the last segment of the path @example

verification.token
# File lib/gems/webauthn_verification.rb, line 39
def token
  path.to_s[%r{[^/]+\z}]
end