@@ -87,6 +87,7 @@ discard block |
||
87 | 87 | * @param string $accessToken |
88 | 88 | * @param string $salt |
89 | 89 | * @param \yii\web\request $request |
90 | + * @param string $ikm |
|
90 | 91 | * @return bool |
91 | 92 | */ |
92 | 93 | private function isHMACSignatureValid($accessToken, $ikm, $salt, $request, $hmac = null) |
@@ -152,7 +153,7 @@ discard block |
||
152 | 153 | |
153 | 154 | /** |
154 | 155 | * Gets the datetime drift that has occured since the request was sent |
155 | - * @param yii\web\Request $request |
|
156 | + * @param \yii\web\Request $request |
|
156 | 157 | * @return int |
157 | 158 | */ |
158 | 159 | private function getTimeDrift($request) |
@@ -38,7 +38,7 @@ |
||
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Deauthenticates a user |
41 | - * @return mixed |
|
41 | + * @return boolean |
|
42 | 42 | */ |
43 | 43 | public function delete($params) |
44 | 44 | { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | /** |
18 | 18 | * Handles registration of users |
19 | - * @return mixed |
|
19 | + * @return boolean |
|
20 | 20 | */ |
21 | 21 | public function post($params) |
22 | 22 | { |
@@ -94,6 +94,8 @@ |
||
94 | 94 | /** |
95 | 95 | * Validates the users OTP code, if they provided |
96 | 96 | * @inheritdoc |
97 | + * @param string $attributes |
|
98 | + * @param string $params |
|
97 | 99 | */ |
98 | 100 | public function validateOTP($attributes, $params) |
99 | 101 | { |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
48 | - * @return sodium_crypto_sign_publickey |
|
48 | + * @return string |
|
49 | 49 | */ |
50 | 50 | public function getSignPublicKey() |
51 | 51 | { |
@@ -55,8 +55,7 @@ discard block |
||
55 | 55 | /** |
56 | 56 | * Generates a new auth and refresh token pair |
57 | 57 | * @param int $userId |
58 | - * @param bool $pubkey |
|
59 | - * @return array |
|
58 | + * @return Token |
|
60 | 59 | */ |
61 | 60 | public static function generate($userId = null) |
62 | 61 | { |
@@ -23,7 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * Command line options |
25 | 25 | * @param string $actionID |
26 | - * @return array |
|
26 | + * @return string[] |
|
27 | 27 | */ |
28 | 28 | public function options($actionID) |
29 | 29 | { |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | |
16 | 16 | /** |
17 | 17 | * Model attributes |
18 | - * @return array |
|
18 | + * @return string[] |
|
19 | 19 | */ |
20 | 20 | public function attributes() |
21 | 21 | { |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | } |
29 | 29 | |
30 | 30 | /** |
31 | - * @return sodium_crypto_box_publickey |
|
31 | + * @return string |
|
32 | 32 | */ |
33 | 33 | public function getBoxPublicKey() |
34 | 34 | { |