You appear to be a bot. Output may be restricted
Description
Checks that a provided grant is valid, or attempts to produce one if the provided grant is a string.
Usage
$AbstractGrant = AbstractProvider::verifyGrant( $grant );
Parameters
- $grant
- ( AbstractGrant|string ) required –
Returns
AbstractGrant
Source
File name: wordpress-seo/vendor_prefixed/league/oauth2-client/src/Provider/AbstractProvider.php
Lines:
1 to 9 of 9
protected function verifyGrant($grant) { if (\is_string($grant)) { return $this->grantFactory->getGrant($grant); } $this->grantFactory->checkGrant($grant); return $grant; }