(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{124:function(e,t,n){"use strict";n.d(t,"a",(function(){returnd})),n.d(t,"b",(function(){returnf}));varr=n(0),o=n.n(r);functiona(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functioni(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?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functions(e,t){if(null==e)return{};varn,r,o=function(e,t){if(null==e)return{};varn,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);returno}(e,t);if(Object.getOwnPropertySymbols){vara=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}returno}varu=o.a.createContext({}),p=function(e){vart=o.a.useContext(u),n=t;returne&&(n="function"==typeofe?e(t):c(c({},t),e)),n},d=function(e){vart=p(e.components);returno.a.createElement(u.Provider,{value:t},e.children)},l={inlineCode:"code",wrapper:function(e){vart=e.children;returno.a.createElement(o.a.Fragment,{},t)}},h=o.a.forwardRef((function(e,t){varn=e.components,r=e.mdxType,a=e.originalType,i=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),d=p(n),h=r,f=d["".concat(i,".").concat(h)]||d[h]||l[h]||a;returnn?o.a.createElement(f,c(c({ref:t},u),{},{components:n})):o.a.createElement(f,c({ref:t},u))}));functionf(e,t){varn=arguments,r=t&&t.mdxType;if("string"==typeofe||r){vara=n.length,i=newArray(a);i[0]=h;varc={};for(varsint)hasOwnProperty.call(t,s)&&(c[s]=t[s]);c.originalType=e,c.mdxType="string"==typeofe?e:r,i[1]=c;for(varu=2;u<a;u++)i[u]=n[u];returno.a.createElement.apply(null,i)}returno.a.createElement.apply(null,n)}h.displayName="MDXCreateElement"},68:function(e,t,n){"use strict";n.r(t),n.d(t,"frontMatter",(function(){returni})),n.d(t,"metadata",(function(){returnc})),n.d(t,"toc",(function(){returns})),n.d(t,"default",(function(){returnp}));varr=n(3),o=n(7),a=(n(0),n(124)),i={id:"authorization_code",title:"Authorization Code"},c={unversionedId:"auth/authorization_code",id:"version-5.1.1/auth/authorization_code",isDocsHomePage:!1,title:"Authorization Code",description:"This way is not recommended for client-side apps and requires server-side code to run securely.",source:"@site/versioned_docs/version-5.1.1/auth/authorization_code.md",slug:"/auth/authorization_code",permalink:"/SpotifyAPI-NET/docs/5.1.1/auth/authorization_code",editUrl:"https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/auth/authorization_code.md",version:"5.1.1",lastUpdatedBy:"dependabot[bot]",lastUpdatedAt:1622836211,formattedLastUpdatedAt:"6/4/2021",sidebar:"version-5.1.1/someSidebar",previous:{title:"Implicit Grant",permalink:"/SpotifyAPI-NET/docs/5.1.1/auth/implicit_grant"},next:{title:"Client Credentials",permalink:"/SpotifyAPI-NET/docs/5.1.1/auth/client_credentials"}},s=[{value:"Token Refresh",id:"token-refresh",children:[]}],u={toc:s};functionp(e){vart=e.components,n=Object(o.a)(e,["components"]);returnObject(a.b)("wrapper",Object(r.a)({},u,n,{components:t,mdxType:"MDXLayout"}),Object(a.b)("p",null,"This way is ",Object(a.b)("strong",{parentName:"p"},"not recommended"),"forclient-sideappsandrequiresserver-sidecodetorunsecurely.\nWiththisapproach,youfirstgetacodewhichyouneedtotradeagainsttheaccess-token.\nInthisexchangeyouneedtoprovideyourClient-Secretandbecauseofthatit'snotrecommended.\nAgoodthingaboutthismethod:Youcanalwaysrefreshyourtoken,withouthavingtheusertoaut