CheckToken
class CheckToken extends ValidateToken
Methods
static string
using(array|string $param, string ...$params)
Specify the parameters for the middleware.
from
ValidateToken
Response
from
ValidateToken
from
ValidateToken
void
validate(ScopeAuthorizable $token, string ...$params)
Determine if the token has all the given scopes.
Details
in
ValidateToken at line 24
__construct(ServerFactory $servers)
Create a new middleware instance.
in
ValidateToken at line 34
static string
using(array|string $param, string ...$params)
Specify the parameters for the middleware.
in
ValidateToken at line 48
Response
handle(Request $request, Closure $next, string ...$params)
Handle an incoming request.
in
ValidateToken at line 76
protected ScopeAuthorizable
validateToken(Request $request)
Validate and get the request's access token.
at line 17
protected void
validate(ScopeAuthorizable $token, string ...$params)
Determine if the token has all the given scopes.