(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[99490],{78829:function(e,i,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reference/core/providers/eventbrite",function(){return s(44513)}])},44513:function(e,i,s){"use strict";s.r(i),s.d(i,{useTOC:function(){return a}});var r=s(651),t=s(27761),n=s(54899),d=s(74149),h=s(3333),l=s(83139);function a(e){return[{value:"EventbriteProfile",id:"eventbriteprofile",depth:2},{value:"See",id:"see",depth:3},{value:"Extends",id:"extends",depth:3},{value:"Properties",id:"properties",depth:3},{value:"emails",id:"emails",depth:4},{value:"first_name",id:"first_name",depth:4},{value:"id",id:"id",depth:4},{value:"image_id",id:"image_id",depth:4},{value:"last_name",id:"last_name",depth:4},{value:"name",id:"name",depth:4},{value:"default()",id:"default",depth:2},{value:"Setup",id:"setup",depth:3},{value:"Callback URL",id:"callback-url",depth:4},{value:"Configuration",id:"configuration",depth:4},{value:"Resources",id:"resources",depth:3},{value:"Notes",id:"notes",depth:3},{value:"Type parameters",id:"type-parameters",depth:3},{value:"Parameters",id:"parameters",depth:3},{value:"Returns",id:"returns",depth:3}]}i.default=(0,t.c)(function(e){let{toc:i=a(e)}=e,s={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",pre:"pre",span:"span",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,d.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.h1,{children:"providers/eventbrite"}),"\n",(0,r.jsxs)("div",{style:{backgroundColor:"#f05537",display:"flex",justifyContent:"space-between",color:"#fff",padding:16},children:[(0,r.jsxs)("span",{children:["Built-in ",(0,r.jsx)("b",{children:"Eventbrite"})," integration."]}),(0,r.jsx)("a",{href:"https://www.eventbrite.com",children:(0,r.jsx)("img",{style:{display:"block"},src:"https://authjs.dev/img/providers/eventbrite.svg",height:"48",width:"48"})})]}),"\n",(0,r.jsx)(s.h2,{id:i[0].id,children:i[0].value}),"\n",(0,r.jsx)(s.h3,{id:i[1].id,children:i[1].value}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.a,{href:"https://www.eventbrite.com/platform/api#/reference/user/retrieve-your-user/retrieve-your-user",children:"https://www.eventbrite.com/platform/api#/reference/user/retrieve-your-user/retrieve-your-user"})}),"\n",(0,r.jsx)(s.h3,{id:i[2].id,children:i[2].value}),"\n",(0,r.jsxs)(s.ul,{children:["\n",(0,r.jsxs)(s.li,{children:[(0,r.jsx)(s.a,{href:"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",children:(0,r.jsx)(s.code,{children:"Record"})}),"<",(0,r.jsx)(s.code,{children:"string"}),", ",(0,r.jsx)(s.code,{children:"any"}),">"]}),"\n"]}),"\n",(0,r.jsx)(s.h3,{id:i[3].id,children:i[3].value}),"\n",(0,r.jsx)(s.h4,{id:i[4].id,children:i[4].value}),"\n",(0,r.jsx)(s.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,r.jsxs)(s.code,{children:[(0,r.jsxs)(s.span,{children:[(0,r.jsx)(s.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"emails"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": {"})]}),"\n",(0,r.jsxs)(s.span,{children:[(0,r.jsx)(s.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"  email"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]}),"\n",(0,r.jsxs)(s.span,{children:[(0,r.jsx)(s.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"  primary"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": boolean;"})]}),"\n",(0,r.jsxs)(s.span,{children:[(0,r.jsx)(s.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"  verified"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": boolean;"})]}),"\n",(0,r.jsx)(s.span,{children:(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"  }[];"})})]})}),"\n",(0,r.jsx)(s.h4,{id:i[5].id,children:i[5].value}),"\n",(0,r.jsx)(s.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,r.jsx)(s.code,{children:(0,r.jsxs)(s.span,{children:[(0,r.jsx)(s.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"first_name"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,r.jsx)(s.h4,{id:i[6].id,children:i[6].value}),"\n",(0,r.jsx)(s.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,r.jsx)(s.code,{children:(0,r.jsxs)(s.span,{children:[(0,r.jsx)(s.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"id"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,r.jsx)(s.h4,{id:i[7].id,children:i[7].value}),"\n",(0,r.jsx)(s.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,r.jsx)(s.code,{children:(0,r.jsxs)(s.span,{children:[(0,r.jsx)(s.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"image_id"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,r.jsx)(s.h4,{id:i[8].id,children:i[8].value}),"\n",(0,r.jsx)(s.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,r.jsx)(s.code,{children:(0,r.jsxs)(s.span,{children:[(0,r.jsx)(s.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"last_name"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,r.jsx)(s.h4,{id:i[9].id,children:i[9].value}),"\n",(0,r.jsx)(s.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,r.jsx)(s.code,{children:(0,r.jsxs)(s.span,{children:[(0,r.jsx)(s.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"name"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.h2,{id:i[10].id,children:i[10].value}),"\n",(0,r.jsx)(s.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,r.jsx)(s.code,{children:(0,r.jsxs)(s.span,{children:[(0,r.jsx)(s.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"default"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"<"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"P"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:">(config): OAuthConfig"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"<"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"P"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:">"})]})})}),"\n",(0,r.jsxs)(s.p,{children:["Add Eventbrite login to your page and make requests to ",(0,r.jsx)(s.a,{href:"https://www.eventbrite.com/platform/api",children:"Eventbrite APIs"}),"."]}),"\n",(0,r.jsx)(s.h3,{id:i[11].id,children:i[11].value}),"\n",(0,r.jsx)(s.h4,{id:i[12].id,children:i[12].value}),"\n",(0,r.jsx)(s.pre,{"data-word-wrap":"","data-copy":"",children:(0,r.jsx)(s.code,{children:"https://example.com/api/auth/callback/eventbrite\n"})}),"\n",(0,r.jsx)(s.h4,{id:i[13].id,children:i[13].value}),"\n",(0,r.jsx)(s.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,r.jsxs)(s.code,{children:[(0,r.jsxs)(s.span,{children:[(0,r.jsx)(s.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"import"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" { Auth } "}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"from"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:' "@auth/core"'})]}),"\n",(0,r.jsxs)(s.span,{children:[(0,r.jsx)(s.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"import"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" Eventbrite "}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"from"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:' "@auth/core/providers/eventbrite"'})]}),"\n",(0,r.jsx)(s.span,{children:" "}),"\n",(0,r.jsxs)(s.span,{children:[(0,r.jsx)(s.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"const"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:" request"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:" ="}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:" new"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:" Request"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"(origin)"})]}),"\n",(0,r.jsxs)(s.span,{children:[(0,r.jsx)(s.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"const"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:" response"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:" ="}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:" await"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:" Auth"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"(request, {"})]}),"\n",(0,r.jsxs)(s.span,{children:[(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"  providers: ["}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"Eventbrite"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"({ clientId: "}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"EVENTBRITE_CLIENT_ID"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:", clientSecret: "}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"EVENTBRITE_CLIENT_SECRET"}),(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" })],"})]}),"\n",(0,r.jsx)(s.span,{children:(0,r.jsx)(s.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"})"})})]})}),"\n",(0,r.jsx)(s.h3,{id:i[14].id,children:i[14].value}),"\n",(0,r.jsxs)(s.ul,{children:["\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.a,{href:"https://www.eventbrite.com/platform/api#/introduction/authentication",children:"Eventbrite OAuth documentation"})}),"\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.a,{href:"https://www.eventbrite.com/account-settings/apps",children:"Eventbrite App Management"})}),"\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.a,{href:"https://authjs.dev/concepts/oauth",children:"Learn more about OAuth"})}),"\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.a,{href:"https://github.com/nextauthjs/next-auth/blob/main/packages/core/src/providers/eventbrite.ts",children:"Source code"})}),"\n"]}),"\n",(0,r.jsx)(s.h3,{id:i[15].id,children:i[15].value}),"\n",(0,r.jsxs)(s.p,{children:["By default, Auth.js assumes that the Eventbrite provider is\nbased on the ",(0,r.jsx)(s.a,{href:"https://www.rfc-editor.org/rfc/rfc6749.html",children:"OAuth 2"})," specification."]}),"\n",(0,r.jsx)(h.U,{type:"default",children:(0,r.jsxs)(s.p,{children:["The Eventbrite provider comes with a ",(0,r.jsx)(s.a,{href:"https://github.com/nextauthjs/next-auth/blob/main/packages/core/src/providers/eventbrite.ts",children:"default configuration"}),".\nTo override the defaults for your use case, check out ",(0,r.jsx)(s.a,{href:"https://authjs.dev/guides/configuring-oauth-providers",children:"customizing a built-in OAuth provider"}),"."]})}),"\n",(0,r.jsxs)(h.U,{type:"info",children:[(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.strong,{children:(0,r.jsx)(s.strong,{children:"Disclaimer"})})," If you think you found a bug in the default configuration, you can ",(0,r.jsx)(s.a,{href:"https://authjs.dev/new/provider-issue",children:"open an issue"}),"."]}),(0,r.jsxs)(s.p,{children:["Auth.js strictly adheres to the specification and it cannot take responsibility for any deviation from\nthe spec by the provider. You can open an issue, but if the problem is non-compliance with the spec,\nwe might not pursue a resolution. You can ask for more help in ",(0,r.jsx)(s.a,{href:"https://authjs.dev/new/github-discussions",children:"Discussions"}),"."]})]}),"\n",(0,r.jsx)(s.h3,{id:i[16].id,children:i[16].value}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsx)(s.tr,{children:(0,r.jsx)(s.th,{style:{textAlign:"left"},children:"Type parameter"})})}),(0,r.jsx)(s.tbody,{children:(0,r.jsx)(s.tr,{children:(0,r.jsxs)(s.td,{style:{textAlign:"left"},children:[(0,r.jsx)(s.code,{children:"P"})," extends ",(0,r.jsx)(s.a,{href:"eventbrite#eventbriteprofile",children:(0,r.jsx)(s.code,{children:"EventbriteProfile"})})]})})})]}),"\n",(0,r.jsx)(s.h3,{id:i[17].id,children:i[17].value}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{style:{textAlign:"left"},children:"Parameter"}),(0,r.jsx)(s.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(s.tbody,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{style:{textAlign:"left"},children:(0,r.jsx)(s.code,{children:"config"})}),(0,r.jsxs)(s.td,{style:{textAlign:"left"},children:[(0,r.jsx)(s.a,{href:"../providers#oauthuserconfigprofile",children:(0,r.jsx)(s.code,{children:"OAuthUserConfig"})}),"<",(0,r.jsx)(s.code,{children:"P"}),">"]})]})})]}),"\n",(0,r.jsx)(s.h3,{id:i[18].id,children:i[18].value}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.a,{href:"../providers#oauthconfigprofile",children:(0,r.jsx)(s.code,{children:"OAuthConfig"})}),"<",(0,r.jsx)(s.code,{children:"P"}),">"]})]})},"/reference/core/providers/eventbrite",{filePath:"pages/reference/core/providers/eventbrite.mdx",pageMap:n.v,frontMatter:{},title:"providers/eventbrite"},"undefined"==typeof RemoteContent?a:RemoteContent.useTOC)},3333:function(e,i,s){"use strict";s.d(i,{U:function(){return l}});var r=s(651),t=s(69577),n=s(83139);let d={default:"\uD83D\uDCA1",error:"\uD83D\uDEAB",info:(0,r.jsx)(n.AV,{className:"_mt-1"}),warning:"⚠️"},h={default:(0,t.Z)("_border-orange-100 _bg-orange-50 _text-orange-800 dark:_border-orange-400/30 dark:_bg-orange-400/20 dark:_text-orange-300"),error:(0,t.Z)("_border-red-200 _bg-red-100 _text-red-900 dark:_border-red-200/30 dark:_bg-red-900/30 dark:_text-red-200"),info:(0,t.Z)("_border-blue-200 _bg-blue-100 _text-blue-900 dark:_border-blue-200/30 dark:_bg-blue-900/30 dark:_text-blue-200"),warning:(0,t.Z)("_border-yellow-100 _bg-yellow-50 _text-yellow-900 dark:_border-yellow-200/30 dark:_bg-yellow-700/30 dark:_text-yellow-200")};function l({children:e,type:i="default",emoji:s=d[i]}){return(0,r.jsxs)("div",{className:(0,t.Z)("nextra-callout _overflow-x-auto _mt-6 _flex _rounded-lg _border _py-2 ltr:_pr-4 rtl:_pl-4","contrast-more:_border-current contrast-more:dark:_border-current",h[i]),children:[(0,r.jsx)("div",{className:"_select-none _text-xl ltr:_pl-3 ltr:_pr-2 rtl:_pr-3 rtl:_pl-2",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'},children:s}),(0,r.jsx)("div",{className:"_w-full _min-w-0 _leading-7",children:e})]})}}},function(e){e.O(0,[27761,54899,92888,49774,40179],function(){return e(e.s=78829)}),_N_E=e.O()}]);