Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | public function verify($token, $authyId, $force = false, $action = null): Response |
||
41 | { |
||
42 | // Prepare required variables |
||
43 | $url = $this->api."verify/{$token}/{$authyId}"; |
||
44 | $params = $this->params + ['query' => ['force' => $force ? 'true' : 'false', 'action' => $action]]; |
||
45 | |||
46 | // Verify Authy token |
||
47 | return new Response($this->http->get($url, $params)); |
||
48 | } |
||
49 | } |
||
50 |