package and depencies
This commit is contained in:
@@ -17,10 +17,9 @@ interface Claim
|
||||
* Set the claim value, and call a validate method.
|
||||
*
|
||||
* @param mixed $value
|
||||
* @return $this
|
||||
*
|
||||
* @throws \Tymon\JWTAuth\Exceptions\InvalidClaimException
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setValue($value);
|
||||
|
||||
@@ -35,7 +34,6 @@ interface Claim
|
||||
* Set the claim name.
|
||||
*
|
||||
* @param string $name
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($name);
|
||||
@@ -51,7 +49,6 @@ interface Claim
|
||||
* Validate the Claim value.
|
||||
*
|
||||
* @param mixed $value
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function validateCreate($value);
|
||||
|
||||
@@ -19,7 +19,6 @@ interface Parser
|
||||
* Parse the request.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
*
|
||||
* @return null|string
|
||||
*/
|
||||
public function parse(Request $request);
|
||||
|
||||
@@ -17,7 +17,6 @@ interface Auth
|
||||
* Check a user's credentials.
|
||||
*
|
||||
* @param array $credentials
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function byCredentials(array $credentials);
|
||||
@@ -26,7 +25,6 @@ interface Auth
|
||||
* Authenticate a user via the id.
|
||||
*
|
||||
* @param mixed $id
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function byId($id);
|
||||
|
||||
@@ -15,14 +15,12 @@ interface JWT
|
||||
{
|
||||
/**
|
||||
* @param array $payload
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function encode(array $payload);
|
||||
|
||||
/**
|
||||
* @param string $token
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function decode($token);
|
||||
|
||||
@@ -17,7 +17,6 @@ interface Storage
|
||||
* @param string $key
|
||||
* @param mixed $value
|
||||
* @param int $minutes
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function add($key, $value, $minutes);
|
||||
@@ -25,21 +24,18 @@ interface Storage
|
||||
/**
|
||||
* @param string $key
|
||||
* @param mixed $value
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function forever($key, $value);
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function get($key);
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function destroy($key);
|
||||
|
||||
@@ -17,7 +17,6 @@ interface Validator
|
||||
* Perform some checks on the value.
|
||||
*
|
||||
* @param mixed $value
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function check($value);
|
||||
@@ -26,7 +25,6 @@ interface Validator
|
||||
* Helper function to return a boolean.
|
||||
*
|
||||
* @param array $value
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isValid($value);
|
||||
|
||||
Reference in New Issue
Block a user