@@ -165,6 +165,18 @@ GDK_API int GA_validate_asset_domain_name(struct GA_session* session, const GA_j
165
165
GDK_API int GA_register_user (
166
166
struct GA_session * session , const GA_json * hw_device , const char * mnemonic , struct GA_auth_handler * * call );
167
167
168
+ /**
169
+ * Authenticate a user.
170
+ *
171
+ * :param session: The session to use.
172
+ * :param hw_device: Details about any :ref:`hw-device` being used to login.
173
+ * :param details: The :ref:`login-credentials` for authenticating the user.
174
+ * :param call: Destination for the resulting GA_auth_handler to perform the login.
175
+ *| Returned GA_auth_handler should be freed using `GA_destroy_auth_handler`.
176
+ */
177
+ GDK_API int GA_login_user (
178
+ struct GA_session * session , const GA_json * hw_device , const GA_json * details , struct GA_auth_handler * * call );
179
+
168
180
/**
169
181
* Authenticate a user using a hardware wallet/HSM/TPM.
170
182
*
@@ -174,6 +186,9 @@ GDK_API int GA_register_user(
174
186
* :param password: The user's password to decrypt a 27 word mnemonic, or a blank string if none.
175
187
* :param call: Destination for the resulting GA_auth_handler to perform the login.
176
188
*| Returned GA_auth_handler should be freed using `GA_destroy_auth_handler`.
189
+ *
190
+ * .. note:: This call is deprecated and will be removed in a future release. Use
191
+ *| `GA_login_user` to login.
177
192
*/
178
193
GDK_API int GA_login (struct GA_session * session , const GA_json * hw_device , const char * mnemonic , const char * password ,
179
194
struct GA_auth_handler * * call );
@@ -186,6 +201,9 @@ GDK_API int GA_login(struct GA_session* session, const GA_json* hw_device, const
186
201
* :param pin_data: The :ref:`pin-data` returned by `GA_set_pin`.
187
202
* :param call: Destination for the resulting GA_auth_handler to perform the login with pin.
188
203
*| Returned GA_auth_handler should be freed using `GA_destroy_auth_handler`.
204
+ *
205
+ * .. note:: This call is deprecated and will be removed in a future release. Use
206
+ *| `GA_login_user` to login.
189
207
*/
190
208
GDK_API int GA_login_with_pin (
191
209
struct GA_session * session , const char * pin , const GA_json * pin_data , struct GA_auth_handler * * call );
@@ -214,6 +232,9 @@ GDK_API int GA_get_watch_only_username(struct GA_session* session, char** userna
214
232
* :param session: The session to use.
215
233
* :param username: The username.
216
234
* :param password: The password.
235
+ *
236
+ * .. note:: This call is deprecated and will be removed in a future release. Use
237
+ *| `GA_login_user` to login.
217
238
*/
218
239
GDK_API int GA_login_watch_only (struct GA_session * session , const char * username , const char * password );
219
240
0 commit comments