Completed
Push — master ( 5c6c30...bc878e )
by Temitope
02:29
created
src/Auth/Oauth.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         if (is_array($userParams)) {
30 30
             $user = new UserController();
31 31
 
32
-            if (!  $this->verifyUserRegistration($userParams['username'], $userParams['email'])) {
32
+            if (!$this->verifyUserRegistration($userParams['username'], $userParams['email'])) {
33 33
                 $boolResponse = $user->createUser([
34 34
                     'firstname'  => $userParams['firstname'],
35 35
                     'lastname'   => $userParams['lastname'],
@@ -140,11 +140,11 @@  discard block
 block discarded – undo
140 140
          * Create the token params as an array
141 141
          */
142 142
         $data = [
143
-            'iat'  => $issuedAt,         // Issued at: time when the token was generated
144
-            'jti'  => $tokenId,          // Json Token Id: an unique identifier for the token
145
-            'iss'  => $serverName,       // Issuer
146
-            'nbf'  => $notBefore,        // Not before
147
-            'exp'  => $expire,           // Expire
143
+            'iat'  => $issuedAt, // Issued at: time when the token was generated
144
+            'jti'  => $tokenId, // Json Token Id: an unique identifier for the token
145
+            'iss'  => $serverName, // Issuer
146
+            'nbf'  => $notBefore, // Not before
147
+            'exp'  => $expire, // Expire
148 148
 
149 149
             'dat'  => $userData         // User Information retrieved from the database
150 150
         ];
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         $secretKey = base64_decode(getenv('secret'));
155 155
 
156 156
         $jwt = JWT::encode(
157
-        $data,      //Data to be encoded in the JWT
157
+        $data, //Data to be encoded in the JWT
158 158
         $secretKey, // The signing key
159 159
         'HS512'     // Algorithm used to sign the token
160 160
         );
Please login to merge, or discard this patch.