src/Laravel/LaravelOAuthBridge.php
public function getClientToken()
    {
        $client = app('db')->connection()->table('clients')
            ->where('client_id', config('services.northstar.client_credentials.client_id'))
            ->first();

        // If any of the required fields are empty, return null.
        if (empty($client->access_token) || empty($client->access_token_expiration)) {
            return null;
        }

        return new AccessToken([
            'access_token' => $client->access_token,
            'expires' => $client->access_token_expiration,
        ]);
    }
public function getClientToken()
    {
        $client = app('db')->connection()->table('clients')
            ->where('client_id', config('services.northstar.client_credentials.client_id'))
            ->first();

        // If any of the required fields are empty, return null.
        if (empty($client->access_token) || empty($client->access_token_expiration)) {
            return null;
        }

        return new AccessToken([
            'access_token' => $client->access_token,
            'expires' => $client->access_token_expiration,
        ]);
    }
public function getClientToken ( ) { $ client = app ( 'db' ) -> connection ( ) -> table ( 'clients' ) -> where ( 'client_id' , config ( 'services.northstar.client_credentials.client_id' ) ) -> first ( ) ; // If any of the required fields are empty, return null. if ( empty ( $ client -> access_token ) || empty ( $ client -> access_token_expiration ) ) { return null ; } return new AccessToken ( [ 'access_token' => $ client -> access_token , 'expires' => $ client -> access_token_expiration , ] ) ; }
Get the OAuth client's token.
Get the OAuth client s token .