Skip to content

Commit

Permalink
fix(spotify): fix JSON keys
Browse files Browse the repository at this point in the history
  • Loading branch information
angristan committed Jul 7, 2021
1 parent 8223056 commit 161d9f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions firstfm/Data/Entities/API/Spotify/SpotifyToken.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ import Foundation
struct SpotifyCredentialsResponse: Codable {
var accessToken: String
var expiresIn: Int

enum CodingKeys: String, CodingKey {
case accessToken = "access_token"
case expiresIn = "expires_in"
}
}

func renewSpotifyToken(completion: @escaping (String) -> ()) {
Expand Down

0 comments on commit 161d9f7

Please sign in to comment.