Skip to content

Instantly share code, notes, and snippets.

@andevsoftware
Last active February 28, 2016 19:51
Show Gist options
  • Select an option

  • Save andevsoftware/4d1e83463cbf30f550bb to your computer and use it in GitHub Desktop.

Select an option

Save andevsoftware/4d1e83463cbf30f550bb to your computer and use it in GitHub Desktop.
Phalcon REST - Authenticate Token
<?php
/** @var \PhalconRest\Http\Request $request */
$token = $this->request->getToken();
if ($token) {
$this->authManager->authenticateToken($token);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment