You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Asynchronously retrieves and decrypts the authentication value for a user's plugin, based on a specified authentication field.
7
+
*
8
+
* @param {string} userId - The unique identifier of the user for whom the plugin authentication value is to be retrieved.
9
+
* @param {string} authField - The specific authentication field (e.g., 'API_KEY', 'URL') whose value is to be retrieved and decrypted.
10
+
* @returns {Promise<string|null>} A promise that resolves to the decrypted authentication value if found, or `null` if no such authentication value exists for the given user and field.
11
+
*
12
+
* The function throws an error if it encounters any issue during the retrieval or decryption process, or if the authentication value does not exist.
13
+
*
14
+
* @example
15
+
* // To get the decrypted value of the 'token' field for a user with userId '12345':
0 commit comments