original_string: public function auth()
      {
          $spotify = app()
              ->make('SpotifyWrapper', [
                  'callback' => '/nova-vendor/nova-spotify-auth-tool/auth',
                  'scope' => [],
                  'show_dialog' => true,
              ])
              ->requestAccessToken();
  
          $spotify->api->setAccessToken($spotify->session->getAccessToken());
  
          Spotify::updateOrCreate(
              ['key' => 'user_id'],
              ['value' => $spotify->api->me()->id]
          );
  
          Spotify::updateOrCreate(
              ['key' => 'refresh_token'],
              ['value' => $spotify->session->getRefreshToken()]
          );
  
          return redirect('nova/nova-spotify-auth-tool');
      }
code: public function auth()
      {
          $spotify = app()
              ->make('SpotifyWrapper', [
                  'callback' => '/nova-vendor/nova-spotify-auth-tool/auth',
                  'scope' => [],
                  'show_dialog' => true,
              ])
              ->requestAccessToken();
  
          $spotify->api->setAccessToken($spotify->session->getAccessToken());
  
          Spotify::updateOrCreate(
              ['key' => 'user_id'],
              ['value' => $spotify->api->me()->id]
          );
  
          Spotify::updateOrCreate(
              ['key' => 'refresh_token'],
              ['value' => $spotify->session->getRefreshToken()]
          );
  
          return redirect('nova/nova-spotify-auth-tool');
      }
code_tokens: public function auth ( ) { $ spotify = app ( ) -> make ( 'SpotifyWrapper' , [ 'callback' => '/nova-vendor/nova-spotify-auth-tool/auth' , 'scope' => [ ] , 'show_dialog' => true , ] ) -> requestAccessToken ( ) ; $ spotify -> api -> setAccessToken ( $ spotify -> session -> getAccessToken ( ) ) ; Spotify :: updateOrCreate ( [ 'key' => 'user_id' ] , [ 'value' => $ spotify -> api -> me ( ) -> id ] ) ; Spotify :: updateOrCreate ( [ 'key' => 'refresh_token' ] , [ 'value' => $ spotify -> session -> getRefreshToken ( ) ] ) ; return redirect ( 'nova/nova-spotify-auth-tool' ) ; }
docstring: Spotify authentication.
  
  @return mixed
docstring_tokens: Spotify authentication .