CreatesOAuthAuthenticator
trait CreatesOAuthAuthenticator
Methods
createOAuthAuthenticatorFromResponse(Response $response, string|null $fallbackRefreshToken = null)
Create an OAuth authenticator from a token response.
createOAuthAuthenticator(string $accessToken, string|null $refreshToken = null, CarbonInterface|null $expiresAt = null)
Create an OAuth authenticator.
CarbonInterface|null
resolveOAuthExpiry(mixed $expiresIn)
Resolve an OAuth token expiry.
Details
at line 25
protected OAuthAuthenticator
createOAuthAuthenticatorFromResponse(Response $response, string|null $fallbackRefreshToken = null)
Create an OAuth authenticator from a token response.
at line 54
protected OAuthAuthenticator
createOAuthAuthenticator(string $accessToken, string|null $refreshToken = null, CarbonInterface|null $expiresAt = null)
Create an OAuth authenticator.
at line 67
protected CarbonInterface|null
resolveOAuthExpiry(mixed $expiresIn)
Resolve an OAuth token expiry.