Last active
February 28, 2016 19:51
-
-
Save andevsoftware/2ee44da9c8c3e3746f16 to your computer and use it in GitHub Desktop.
Phalcon REST - Receive Session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** @var \PhalconRest\Auth\Session $session */ | |
$session = $this->authManager->getSession(); | |
$response = [ | |
'token' => $session->getToken(), | |
'expires' => $session->getExpirationTime() | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment