public function issueToken(Request $Request, Response $Response)
    {
        try { // Handles `/(access|refresh)-token` endpoints.
            $AuthorizationServer = $this->authorizationServer();
            $Response            = $AuthorizationServer->respondToAccessTokenRequest($Request, $Response);
            $Response->output(['exit' => true]);
            //
        } catch (OAuthServerException $Exception) {
            $Response = $Exception->generateHttpResponse($Response);
            $Response->output(['exit' => true]);
            //
        } catch (\Throwable $Exception) {
            $Exception = new OAuthServerException($Exception->getMessage(), 0, 'unknown', 500);
            $Response  = $Exception->generateHttpResponse($Response);
            $Response->output(['exit' => true]);
        }
    }
public function issueToken(Request $Request, Response $Response)
    {
        try { // Handles `/(access|refresh)-token` endpoints.
            $AuthorizationServer = $this->authorizationServer();
            $Response            = $AuthorizationServer->respondToAccessTokenRequest($Request, $Response);
            $Response->output(['exit' => true]);
            //
        } catch (OAuthServerException $Exception) {
            $Response = $Exception->generateHttpResponse($Response);
            $Response->output(['exit' => true]);
            //
        } catch (\Throwable $Exception) {
            $Exception = new OAuthServerException($Exception->getMessage(), 0, 'unknown', 500);
            $Response  = $Exception->generateHttpResponse($Response);
            $Response->output(['exit' => true]);
        }
    }
public function issueToken ( Request $ Request , Response $ Response ) { try { // Handles `/(access|refresh)-token` endpoints. $ AuthorizationServer = $ this -> authorizationServer ( ) ; $ Response = $ AuthorizationServer -> respondToAccessTokenRequest ( $ Request , $ Response ) ; $ Response -> output ( [ 'exit' => true ] ) ; // } catch ( OAuthServerException $ Exception ) { $ Response = $ Exception -> generateHttpResponse ( $ Response ) ; $ Response -> output ( [ 'exit' => true ] ) ; // } catch ( \ Throwable $ Exception ) { $ Exception = new OAuthServerException ( $ Exception -> getMessage ( ) , 0 , 'unknown' , 500 ) ; $ Response = $ Exception -> generateHttpResponse ( $ Response ) ; $ Response -> output ( [ 'exit' => true ] ) ; } }
Issue token.

@since 17xxxx OAuth utils.

@param Request  $Request  Request.
@param Response $Response Response.
Issue token .