TDLib
Loading...
Searching...
No Matches
checkAuthenticationPasskey Class Referencefinal

Inherits Function.

Description

Checks a passkey to log in to the corresponding account. Call getAuthenticationPasskeyParameters to get parameters for the passkey. Works only when the current authorization state is authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation, or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword.

Returns object_ptr<Ok>.

Public Types

using ReturnType = object_ptr<ok>
 Typedef for the type returned by the function.

Public Member Functions

 checkAuthenticationPasskey ()
 checkAuthenticationPasskey (string const &credential_id_, string const &client_data_, bytes const &authenticator_data_, bytes const &signature_, bytes const &user_handle_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

bytes authenticator_data_
 Authenticator data of the application that created the credential.
string client_data_
 JSON-encoded client data.
string credential_id_
 Base64url-encoded identifier of the credential.
bytes signature_
 Cryptographic signature of the credential.
bytes user_handle_
 User handle of the passkey.

Static Public Attributes

static const std::int32_t ID = 1225325317
 Identifier uniquely determining a type of the object.

Constructor & Destructor Documentation

◆ checkAuthenticationPasskey() [1/2]

checkAuthenticationPasskey ( )

Default constructor for a function, which checks a passkey to log in to the corresponding account. Call getAuthenticationPasskeyParameters to get parameters for the passkey. Works only when the current authorization state is authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation, or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword.

Returns object_ptr<Ok>.

◆ checkAuthenticationPasskey() [2/2]

checkAuthenticationPasskey ( string const & credential_id_,
string const & client_data_,
bytes const & authenticator_data_,
bytes const & signature_,
bytes const & user_handle_ )

Creates a function, which checks a passkey to log in to the corresponding account. Call getAuthenticationPasskeyParameters to get parameters for the passkey. Works only when the current authorization state is authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation, or if there is no pending authentication query and the current authorization state is authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword.

Returns object_ptr<Ok>.

Parameters
[in]credential_id_Base64url-encoded identifier of the credential.
[in]client_data_JSON-encoded client data.
[in]authenticator_data_Authenticator data of the application that created the credential.
[in]signature_Cryptographic signature of the credential.
[in]user_handle_User handle of the passkey.

Member Function Documentation

◆ store()

void store ( TlStorerToString & s,
const char * field_name ) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: