{"id":25833373,"url":"https://github.com/jonomacc/serverless-spotify-auth","last_synced_at":"2025-09-07T17:40:49.633Z","repository":{"id":56330133,"uuid":"312691941","full_name":"JonoMacC/serverless-spotify-auth","owner":"JonoMacC","description":"Authorization Code Flow to the Spotify Web API using Netlify serverless functions","archived":false,"fork":false,"pushed_at":"2020-11-26T16:56:01.000Z","size":246,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T13:08:52.662Z","etag":null,"topics":["create-react-app","netlify-functions","react","serverless-functions","spotify-web-api"],"latest_commit_sha":null,"homepage":"https://serverless-spotify-auth.netlify.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JonoMacC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-13T21:53:22.000Z","updated_at":"2024-05-24T16:12:30.000Z","dependencies_parsed_at":"2022-08-15T16:50:17.512Z","dependency_job_id":null,"html_url":"https://github.com/JonoMacC/serverless-spotify-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JonoMacC/serverless-spotify-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonoMacC%2Fserverless-spotify-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonoMacC%2Fserverless-spotify-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonoMacC%2Fserverless-spotify-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonoMacC%2Fserverless-spotify-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JonoMacC","download_url":"https://codeload.github.com/JonoMacC/serverless-spotify-auth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonoMacC%2Fserverless-spotify-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274071848,"owners_count":25217633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["create-react-app","netlify-functions","react","serverless-functions","spotify-web-api"],"created_at":"2025-02-28T22:47:55.285Z","updated_at":"2025-09-07T17:40:49.453Z","avatar_url":"https://github.com/JonoMacC.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless Spotify Auth\n\n[![Netlify Status](https://api.netlify.com/api/v1/badges/d33b42c0-fb45-4221-b0b9-32c61dd6e711/deploy-status)](https://app.netlify.com/sites/serverless-spotify-auth/deploys)\n\nThis project demonstrates OAuth 2.0 authentication via the Authorization Code Flow for the [Spotify Web API](https://developer.spotify.com/documentation/web-api/) using Netlify serverless functions. In essence, the [Spotify Web API example](https://github.com/spotify/web-api-auth-examples) has been adapted to use Netlify functions on the backend and [Create React App](https://github.com/facebook/create-react-app) on the frontend.\n\n## Spotify App Setup\n\nUse your Spotify account on the [Spotify developer site](https://developer.spotify.com) to create an app and get a Client ID and Client Secret. You need to set up your redirect URI on the Spotify dashboard.\n\n### Redirect URI for Local Development\n\nhttp://localhost:8888/.netlify/functions/callback\n\n## Deploy\n\n[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/JonoMacC/serverless-spotify-auth)\n\n## Local Development\n\nCreate a file called .env to store environment variables.\n\n    REACT_APP_CLIENT_ID=\"your client id here\"\n    REACT_APP_CLIENT_SECRET=\"your client secret here\"\n\nNever share your Client ID in public such as in a git repository.\n\n## Local Development\n\nIn the project directory, install the packages:\n\n    yarn\n\nSet up Netlify CLI if you have not done so.\n\n    npm install netlify-cli -g\n\nLogin to your Netlify account:\n\n    ntl login\n\nStart the app:\n\n    ntl dev\n\nOpen [http://localhost:8888](http://localhost:8888) to view it in the browser.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonomacc%2Fserverless-spotify-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonomacc%2Fserverless-spotify-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonomacc%2Fserverless-spotify-auth/lists"}