1
0
Fork 0
mirror of synced 2024-06-29 03:30:34 +12:00

feat: parse token

This commit is contained in:
Christy Jacob 2020-12-27 23:52:05 +05:30
parent 9690ce8794
commit fde5183594

View file

@ -38,6 +38,9 @@ class V06 extends Filter {
$parsedResponse = $this->parseLogList($content);
break;
case Response::MODEL_TOKEN:
$parsedResponse = $this->parseToken($content);
break;
case Response::MODEL_ANY :
$parsedResponse = $content;
break;
@ -54,6 +57,12 @@ class V06 extends Filter {
}
private function parseToken(array $content)
{
$content['type'] = Auth::TOKEN_TYPE_RECOVERY;
return $content;
}
private function parseLogList(array $content)
{
$logs = $content['logs'];