Skip to content

Instantly share code, notes, and snippets.

@millar
Created January 6, 2016 16:17
Show Gist options
  • Save millar/50169e74c1af785a2983 to your computer and use it in GitHub Desktop.
Save millar/50169e74c1af785a2983 to your computer and use it in GitHub Desktop.
<?php
namespace OAuth\Common\Storage;
use Predis\Client as Predis;
class LaravelRedisStorage extends Redis implements TokenStorageInterface {
public function __construct()
{
$this->redis = \Redis::connection();
$this->key = 'oauth_user_tokens';
$this->stateKey = 'oauth_user_states';
$this->cachedTokens = array();
$this->cachedStates = array();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment