Search artists / tracks and display on User Profile

Hi team,

 

I have a social network app on IOS / Android. I want users to search through artists and songs and then select a few to display them on their profile. 

 

Wanted to check what is the best way to implement the search functions? I can think of two options. I'm not using any user information, so I think Client Credentials Flow would be OK?

 

 

Option 1: App connects to my server to Spotify API

windowsxp_0-1664537596700.png

 

Option 2: App connects directly to Spotify API

windowsxp_1-1664537629967.png

Would it be safe to keep the Access Token in the app?

 

 

 

Child Item
Child Item
Child Item

Accepted answers

All comments

Yes, the Client Credentials Flow would be enough.

Thanks for the reply - Which would be the better way, Option 1 or 2?

 

Or are both suitable and doesn't really matter?

 

You can just do Option 2.

Ok cool - how would I get the access token in the mobile app?

Child Item
Child Item