(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{124:function(e,t,n){"use strict";n.d(t,"a",(function(){returnu})),n.d(t,"b",(function(){returnf}));varr=n(0),a=n.n(r);functioni(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functiono(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionc(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functions(e,t){if(null==e)return{};varn,r,a=function(e,t){if(null==e)return{};varn,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);returna}(e,t);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}returna}varl=a.a.createContext({}),p=function(e){vart=a.a.useContext(l),n=t;returne&&(n="function"==typeofe?e(t):c(c({},t),e)),n},u=function(e){vart=p(e.components);returna.a.createElement(l.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){vart=e.children;returna.a.createElement(a.a.Fragment,{},t)}},b=a.a.forwardRef((function(e,t){varn=e.components,r=e.mdxType,i=e.originalType,o=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),u=p(n),b=r,f=u["".concat(o,".").concat(b)]||u[b]||d[b]||i;returnn?a.a.createElement(f,c(c({ref:t},l),{},{components:n})):a.a.createElement(f,c({ref:t},l))}));functionf(e,t){varn=arguments,r=t&&t.mdxType;if("string"==typeofe||r){vari=n.length,o=newArray(i);o[0]=b;varc={};for(varsint)hasOwnProperty.call(t,s)&&(c[s]=t[s]);c.originalType=e,c.mdxType="string"==typeofe?e:r,o[1]=c;for(varl=2;l<i;l++)o[l]=n[l];returna.a.createElement.apply(null,o)}returna.a.createElement.apply(null,n)}b.displayName="MDXCreateElement"},92:function(e,t,n){"use strict";n.r(t),n.d(t,"frontMatter",(function(){returno})),n.d(t,"metadata",(function(){returnc})),n.d(t,"toc",(function(){returns})),n.d(t,"default",(function(){returnp}));varr=n(3),a=n(7),i=(n(0),n(124)),o={id:"client_credentials",title:"Client Credentials"},c={unversionedId:"client_credentials",id:"client_credentials",isDocsHomePage:!1,title:"Client Credentials",description:"The Client Credentials flow is used in server-to-server authentication.",source:"@site/docs/client_credentials.md",slug:"/client_credentials",permalink:"/SpotifyAPI-NET/docs/client_credentials",editUrl:"https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/client_credentials.md",version:"current",lastUpdatedBy:"dependabot[bot]",lastUpdatedAt:1622836139,formattedLastUpdatedAt:"6/4/2021",sidebar:"docs",previous:{title:"Introduction",permalink:"/SpotifyAPI-NET/docs/auth_introduction"},next:{title:"Implicit Grant",permalink:"/SpotifyAPI-NET/docs/implicit_grant"}},s=[{value:"Request token once",id:"request-token-once",children:[]},{value:"Request Token On-Demand",id:"request-token-on-demand",children:[]}],l={toc:s};functionp(e){vart=e.components,n=Object(a.a)(e,["components"]);returnObject(i.b)("wrapper",Object(r.a)({},l,n,{components:t,mdxType:"MDXLayout"}),Object(i.b)("blockquote",null,Object(i.b)("p",{parentName:"blockquote"},"The Client Credentials flow is used in server-to-server authentication.\nOnly endpoints that do not access user information can be accessed.")),Object(i.b)("p",null,"By supplying your ",Object(i.b)("inlineCode",{parentName:"p"},"SPOTIFY_CLIENT_ID")," and ",Object(i.b)("inlineCode",{parentName:"p"},"SPOTIFY_CLIENT_SECRET"),", you get an access token."),Object(i.b)("h2",{id:"request-token-once"},"Request token once"),Object(i.b)("p",null,"Torequestanaccesst