Skip to content

Spotify Access Token 획득

Hwanhee "Asher" Kim edited this page Nov 26, 2024 · 1 revision
sequenceDiagram
    participant App as 앱
    participant Server as 서버
    participant Spotify as Spotify

    App->>Server: 1. POST: 일회용 code로 Session ID, Access Token 요청
    Server->>Spotify: 2. POST [토큰 요청]<br/>(https://accounts.spotify.com/api/token)
    Spotify->>Server: 3. 응답 [Access Token, Refresh Token]
    note over Server: 4. Session ID 발급 (24시간 후 만료)<br/> 및 Refresh Token 저장
    Server->>App: 5. 응답 [Access Token, Session ID 전달]
    note over App: 6. Key Chain에 Access Token, Session ID 저장
Loading
Clone this wiki locally