List of all members | Public Fields | Public Types | Public Instance Methods | Static Public Attributes
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 Fields

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

Public Types

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

Public Instance Methods

 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 Instance Methods inherited from TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ checkAuthenticationPasskey() [1/2]

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.

Method 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: