Class: SpotifyExporter::AuthWorkflow

Inherits:
Object
  • Object
show all
Defined in:
lib/spotifyexporter/auth.rb

Instance Method Summary collapse

Instance Method Details

#startObject

Starts auth flow



11
12
13
14
15
16
17
18
# File 'lib/spotifyexporter/auth.rb', line 11

def start
  auth = prompt_for_auth

  ConfigManager.instance.save_credentials(
    client_id: auth[:spotify_client_id],
    secret: auth[:spotify_client_secret]
  )
end