"use strict";(self.webpackChunkspotify_api_docs=self.webpackChunkspotify_api_docs||[]).push([[8897],{3905:function(e,t,n){n.d(t,{Zo:function(){returnu},kt:function(){returnd}});varo=n(7294);functionr(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functiona(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varo=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}returnn}functioni(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functions(e,t){if(null==e)return{};varn,o,r=function(e,t){if(null==e)return{};varn,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);returnr}(e,t);if(Object.getOwnPropertySymbols){vara=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}returnr}varp=o.createContext({}),l=function(e){vart=o.useContext(p),n=t;returne&&(n="function"==typeofe?e(t):i(i({},t),e)),n},u=function(e){vart=l(e.components);returno.createElement(p.Provider,{value:t},e.children)},c={inlineCode:"code",wrapper:function(e){vart=e.children;returno.createElement(o.Fragment,{},t)}},h=o.forwardRef((function(e,t){varn=e.components,r=e.mdxType,a=e.originalType,p=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),h=l(n),d=r,y=h["".concat(p,".").concat(d)]||h[d]||c[d]||a;returnn?o.createElement(y,i(i({ref:t},u),{},{components:n})):o.createElement(y,i({ref:t},u))}));functiond(e,t){varn=arguments,r=t&&t.mdxType;if("string"==typeofe||r){vara=n.length,i=newArray(a);i[0]=h;vars={};for(varpint)hasOwnProperty.call(t,p)&&(s[p]=t[p]);s.originalType=e,s.mdxType="string"==typeofe?e:r,i[1]=s;for(varl=2;l<a;l++)i[l]=n[l];returno.createElement.apply(null,i)}returno.createElement.apply(null,n)}h.displayName="MDXCreateElement"},1291:function(e,t,n){n.r(t),n.d(t,{assets:function(){returnu},contentTitle:function(){returnp},default:function(){returnd},frontMatter:function(){returns},metadata:function(){returnl},toc:function(){returnc}});varo=n(7462),r=n(3366),a=(n(7294),n(3905)),i=["components"],s={id:"token_swap",title:"Token Swap"},p=void0,l={unversionedId:"auth/token_swap",id:"version-5.1.1/auth/token_swap",title:"Token Swap",description:"This way uses server-side code or at least access to an exchange server, otherwise, compared to other",source:"@site/versioned_docs/version-5.1.1/auth/token_swap.md",sourceDirName:"auth",slug:"/auth/token_swap",permalink:"/SpotifyAPI-NET/docs/5.1.1/auth/token_swap",draft:!1,editUrl:"https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/auth/token_swap.md",tags:[],version:"5.1.1",lastUpdatedBy:"Jonas Dellinger",lastUpdatedAt:1685219501,formattedLastUpdatedAt:"May 27, 2023",frontMatter:{id:"token_swap",title:"Token Swap"},sidebar:"version-5.1.1/someSidebar",previous:{title:"Client Credentials",permalink:"/SpotifyAPI-NET/docs/5.1.1/auth/client_credentials"}},u={},c=[{value:"Using TokenSwapWebAPIFactory",id:"using-tokenswapwebapifactory",level:2},{value:"Using TokenSwapAuth",id:"using-tokenswapauth",level:2},{value:"Token Swap Endpoint",id:"token-swap-endpoint",level:2},{value:"Remarks",id:"remarks",level:2}],h={toc:c};functiond(e){vart=e.components,n=(0,r.Z)(e,i);return(0,a.kt)("wrapper",(0,o.Z)({},h,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("p",null,"This way uses server-side code or at least access to an exchange server, otherwise, compared to other\nmethods, it is impossible to use."),(0,a.kt)("p",null,'Withthisapproach,youprovidetheURI/URLtoyourdesiredexchangeservertoperformallnecessary\nrequeststoSpotify,aswellasreque