I'm having trouble with Spotify beta 9. All the tutorials seem phased out regarding saving a SPTSession and updating(refreshing) with the RefreshTokenURL. This is how I'm getting the AuthViewController....
let spotifyAuthenticationViewController = SPTAuthViewController.authenticationViewController()
spotifyAuthenticationViewController.delegate = self
spotifyAuthenticationViewController.modalPresentationStyle = UIModalPresentationStyle.OverCurrentContext
spotifyAuthenticationViewController.definesPresentationContext = true
presentViewController(spotifyAuthenticationViewController, animated: true, completion: nil)
Now I need to create a session, save, and periodically refresh. I would like to save in CoreData. Please help if you've done this before or have any good tips
You have to store it in NSUserDefaults: