Skip to content

Commit

Permalink
Replace authenticator with attributes param
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenclouston committed Dec 6, 2024
1 parent 0449085 commit bd8645b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Authsignal/Authsignal.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ public static function getAuthenticators(array $params)
* Enroll Authenticators
* @param array $params An associative array of parameters:
* - string 'userId': The userId of the user you are tracking the action for
* - array 'authenticator': The authenticator object
* - array 'attributes': The authenticator object
* @return Array The authsignal response
*/
public static function enrollVerifiedAuthenticator(array $params)
{
$request = new AuthsignalClient();
$userId = urlencode($params['userId']);
$authenticator = $params['authenticator'];
list($response, $request) = $request->send("/users/{$userId}/authenticators", $authenticator, 'post');
$attributes = $params['attributes'];
list($response, $request) = $request->send("/users/{$userId}/authenticators", $attributes, 'post');

return $response;
}
Expand Down

0 comments on commit bd8645b

Please sign in to comment.