public function associateAuthCode($sessionId, $authCode, $expireTime)
    {
        $id = DB::table('oauth_session_authcodes')->insertGetId(array(
            'session_id'        => $sessionId,
            'auth_code'         => $authCode,
            'auth_code_expires' => $expireTime,
            'created_at' => Carbon::now(),
            'updated_at' => Carbon::now()
        ));

        return $id;
    }
public function associateAuthCode($sessionId, $authCode, $expireTime)
    {
        $id = DB::table('oauth_session_authcodes')->insertGetId(array(
            'session_id'        => $sessionId,
            'auth_code'         => $authCode,
            'auth_code_expires' => $expireTime,
            'created_at' => Carbon::now(),
            'updated_at' => Carbon::now()
        ));

        return $id;
    }
public function associateAuthCode ( $ sessionId , $ authCode , $ expireTime ) { $ id = DB :: table ( 'oauth_session_authcodes' ) -> insertGetId ( array ( 'session_id' => $ sessionId , 'auth_code' => $ authCode , 'auth_code_expires' => $ expireTime , 'created_at' => Carbon :: now ( ) , 'updated_at' => Carbon :: now ( ) ) ) ; return $ id ; }
Assocate an authorization code with a session

Example SQL query:

<code>
INSERT INTO oauth_session_authcodes (session_id, auth_code, auth_code_expires)
VALUE (:sessionId, :authCode, :authCodeExpires)
</code>

@param  int    $sessionId  The session ID
@param  string $authCode   The authorization code
@param  int    $expireTime Unix timestamp of the access token expiry time
@return int                The auth code ID
Assocate an authorization code with a session