"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"},5946:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){returni},contentTitle:function(){returns},metadata:function(){returnp},toc:function(){returnl},default:function(){returnc}});varo=n(3117),r=n(102),a=(n(7294),n(3905)),i={id:"token_swap",title:"Token Swap"},s=void0,p={unversionedId:"auth/token_swap",id:"version-5.1.1/auth/token_swap",isDocsHomePage:!1,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",editUrl:"https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/versioned_docs/version-5.1.1/auth/token_swap.md",version:"5.1.1",lastUpdatedBy:"dependabot[bot]",lastUpdatedAt:1643139168,formattedLastUpdatedAt:"1/25/2022",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"}},l=[{value:"Using TokenSwapWebAPIFactory",id:"using-tokenswapwebapifactory",children:[]},{value:"Using TokenSwapAuth",id:"using-tokenswapauth",children:[]},{value:"Token Swap Endpoint",id:"token-swap-endpoint",children:[]},{value:"Remarks",id:"remarks",children:[]}],u={toc:l};functionc(e){vart=e.components,n=(0,r.Z)(e,["components"]);return(0,a.kt)("wrapper",(0,o.Z)({},u,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,aswellasrequeststhatreturnbackto