/** * Store refresh token * @param IRefreshToken $refreshToken */ public function store(IRefreshToken $refreshToken) { $this->getTable()->insert(array('refresh_token' => $refreshToken->getRefreshToken(), 'client_id' => $refreshToken->getClientId(), 'user_id' => $refreshToken->getUserId(), 'expires' => $refreshToken->getExpires())); }
/** * Store refresh token * @param IRefreshToken $refreshToken */ public function store(IRefreshToken $refreshToken) { $this->context->insert($this->getTable(), array('refresh_token' => $refreshToken->getRefreshToken(), 'client_id' => $refreshToken->getClientId(), 'user_id' => $refreshToken->getUserId(), 'expires_at' => $refreshToken->getExpires()))->execute(); }