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
    
  
  
    
  | $response = $client->auth()->handleCallback($_GET); | 
  
    
      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
    
  
  
    
  | $authRequest = $client->auth()->authenticate("LaunchKeyUserName"); | 
  
    
      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
    
  
  
    
  | $config = new \LaunchKey\SDK\Config(); | |
| $config->setAppKey("1234567890") | |
| ->setSecretKey("supersecretandwayrandomsecretkey") | |
| ->setPrivateKeyLocation("/usr/local/etc/launchkey-app-private-key.pem"); | |
| $client = \LaunchKey\SDK\Client::factory($config); | 
  
    
      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
    
  
  
    
  | $client = \LaunchKey\SDK\Client::factory( | |
| "1234567890", | |
| "supersecretandwayrandomsecretkey", | |
| file_get_contents("/usr/local/etc/launchkey-app-private-key.pem") | |
| ); | 
  
    
      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
    
  
  
    
  | launchKey.createWhiteLabelUser( | |
| identifier, | |
| function (whiteLabelUser) { | |
| cli.ok("User with identifier of \"" + identifier + "\" created with:"); | |
| cli.ok(" QR Code URL: " + whiteLabelUser.getQrCodeUrl()); | |
| cli.ok(" Code: " + whiteLabelUser.getCode()); | |
| }, | |
| error | |
| ); | 
  
    
      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
    
  
  
    
  | var AuthRequest = require("launchkey-sdk").AuthRequest, | |
| authRequest = new AuthRequest("auth request ID") | |
| error = function (error) { | |
| console.error("Error encountered: [" + error.code + "] " + error.message); | |
| }; | |
| launchKey.deorbit( | |
| authRequest, | |
| function () { | |
| console.log("Logged out " + authRequest.getId()); | 
  
    
      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
    
  
  
    
  | var error = function (error) { | |
| console.log("Error encountered: [" + error.code + "] " + error.message); | |
| }, | |
| poll = function (authRequest) { | |
| launchKey.checkStatus( | |
| authRequest, | |
| function (authRequest) { | |
| console.log("User accepted launch request " + authRequest.getId()); | |
| }, | |
| function (authRequest) { |