Ejemplo n.º 1
0
 /**
  * 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()));
 }
Ejemplo n.º 2
0
 /**
  * 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();
 }