(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[87418],{58061:function(i,s,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reference/core/providers/slack",function(){return e(62735)}])},62735:function(i,s,e){"use strict";e.r(s),e.d(s,{useTOC:function(){return r}});var a=e(651),h=e(64464),d=e(46635),l=e(19829),n=e(82732),t=e(74661);function r(i){let s={a:"a",...(0,l.a)()};return[{value:"SlackProfile",id:"slackprofile",depth:2},{value:"Extends",id:"extends",depth:3},{value:"Properties",id:"properties",depth:3},{value:"date_email_verified",id:"date_email_verified",depth:4},{value:"email",id:"email",depth:4},{value:"email_verified",id:"email_verified",depth:4},{value:"family_name",id:"family_name",depth:4},{value:"given_name",id:"given_name",depth:4},{value:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.a,{href:"https://slack.com/team%5C_domain",children:"https://slack.com/team\\_domain"})}),id:"httpsslackcomteam_domain",depth:4},{value:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.a,{href:"https://slack.com/team%5C_id",children:"https://slack.com/team\\_id"})}),id:"httpsslackcomteam_id",depth:4},{value:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.a,{href:"https://slack.com/team%5C_image%5C_102",children:"https://slack.com/team\\_image\\_102"})}),id:"httpsslackcomteam_image_102",depth:4},{value:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.a,{href:"https://slack.com/team%5C_image%5C_132",children:"https://slack.com/team\\_image\\_132"})}),id:"httpsslackcomteam_image_132",depth:4},{value:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.a,{href:"https://slack.com/team%5C_image%5C_230",children:"https://slack.com/team\\_image\\_230"})}),id:"httpsslackcomteam_image_230",depth:4},{value:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.a,{href:"https://slack.com/team%5C_image%5C_34",children:"https://slack.com/team\\_image\\_34"})}),id:"httpsslackcomteam_image_34",depth:4},{value:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.a,{href:"https://slack.com/team%5C_image%5C_44",children:"https://slack.com/team\\_image\\_44"})}),id:"httpsslackcomteam_image_44",depth:4},{value:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.a,{href:"https://slack.com/team%5C_image%5C_68",children:"https://slack.com/team\\_image\\_68"})}),id:"httpsslackcomteam_image_68",depth:4},{value:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.a,{href:"https://slack.com/team%5C_image%5C_88",children:"https://slack.com/team\\_image\\_88"})}),id:"httpsslackcomteam_image_88",depth:4},{value:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.a,{href:"https://slack.com/team%5C_image%5C_default",children:"https://slack.com/team\\_image\\_default"})}),id:"httpsslackcomteam_image_default",depth:4},{value:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.a,{href:"https://slack.com/team%5C_name",children:"https://slack.com/team\\_name"})}),id:"httpsslackcomteam_name",depth:4},{value:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.a,{href:"https://slack.com/user%5C_id",children:"https://slack.com/user\\_id"})}),id:"httpsslackcomuser_id",depth:4},{value:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.a,{href:"https://slack.com/user%5C_image%5C_1024",children:"https://slack.com/user\\_image\\_1024"})}),id:"httpsslackcomuser_image_1024",depth:4},{value:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.a,{href:"https://slack.com/user%5C_image%5C_192",children:"https://slack.com/user\\_image\\_192"})}),id:"httpsslackcomuser_image_192",depth:4},{value:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.a,{href:"https://slack.com/user%5C_image%5C_24",children:"https://slack.com/user\\_image\\_24"})}),id:"httpsslackcomuser_image_24",depth:4},{value:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.a,{href:"https://slack.com/user%5C_image%5C_32",children:"https://slack.com/user\\_image\\_32"})}),id:"httpsslackcomuser_image_32",depth:4},{value:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.a,{href:"https://slack.com/user%5C_image%5C_48",children:"https://slack.com/user\\_image\\_48"})}),id:"httpsslackcomuser_image_48",depth:4},{value:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.a,{href:"https://slack.com/user%5C_image%5C_512",children:"https://slack.com/user\\_image\\_512"})}),id:"httpsslackcomuser_image_512",depth:4},{value:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.a,{href:"https://slack.com/user%5C_image%5C_72",children:"https://slack.com/user\\_image\\_72"})}),id:"httpsslackcomuser_image_72",depth:4},{value:"locale",id:"locale",depth:4},{value:"name",id:"name",depth:4},{value:"ok",id:"ok",depth:4},{value:"picture",id:"picture",depth:4},{value:"sub",id:"sub",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}]}s.default=(0,h.c)(function(i){let{toc:s=r(i)}=i,e={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,l.a)(),...i.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(e.h1,{children:"providers/slack"}),"\n",(0,a.jsxs)("div",{style:{backgroundColor:"#000",display:"flex",justifyContent:"space-between",color:"#fff",padding:16},children:[(0,a.jsxs)("span",{children:["Built-in ",(0,a.jsx)("b",{children:"Slack"})," integration."]}),(0,a.jsx)("a",{href:"https://www.slack.com/",children:(0,a.jsx)("img",{style:{display:"block"},src:"https://authjs.dev/img/providers/slack.svg",height:"48"})})]}),"\n",(0,a.jsx)(e.h2,{id:s[0].id,children:s[0].value}),"\n",(0,a.jsx)(e.h3,{id:s[1].id,children:s[1].value}),"\n",(0,a.jsxs)(e.ul,{children:["\n",(0,a.jsxs)(e.li,{children:[(0,a.jsx)(e.a,{href:"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",children:(0,a.jsx)(e.code,{children:"Record"})}),"<",(0,a.jsx)(e.code,{children:"string"}),", ",(0,a.jsx)(e.code,{children:"any"}),">"]}),"\n"]}),"\n",(0,a.jsx)(e.h3,{id:s[2].id,children:s[2].value}),"\n",(0,a.jsx)(e.h4,{id:s[3].id,children:s[3].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"date_email_verified"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": number;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[4].id,children:s[4].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"email"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[5].id,children:s[5].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"email_verified"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": boolean;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[6].id,children:s[6].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"family_name"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[7].id,children:s[7].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"given_name"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[8].id,children:s[8].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"com"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"/"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"team_domain"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[9].id,children:s[9].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"com"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"/"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"team_id"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[10].id,children:s[10].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"com"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"/"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"team_image_102"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[11].id,children:s[11].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"com"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"/"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"team_image_132"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[12].id,children:s[12].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"com"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"/"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"team_image_230"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[13].id,children:s[13].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"com"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"/"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"team_image_34"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[14].id,children:s[14].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"com"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"/"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"team_image_44"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[15].id,children:s[15].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"com"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"/"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"team_image_68"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[16].id,children:s[16].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"com"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"/"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"team_image_88"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[17].id,children:s[17].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"com"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"/"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"team_image_default"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": boolean;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[18].id,children:s[18].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"com"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"/"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"team_name"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[19].id,children:s[19].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"com"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"/"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"user_id"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[20].id,children:s[20].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"com"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"/"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"user_image_1024"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[21].id,children:s[21].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"com"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"/"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"user_image_192"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[22].id,children:s[22].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"com"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"/"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"user_image_24"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[23].id,children:s[23].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"com"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"/"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"user_image_32"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[24].id,children:s[24].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"com"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"/"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"user_image_48"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[25].id,children:s[25].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"com"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"/"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"user_image_512"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[26].id,children:s[26].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"com"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"/"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"user_image_72"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[27].id,children:s[27].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"locale"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[28].id,children:s[28].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"name"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[29].id,children:s[29].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"ok"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": boolean;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[30].id,children:s[30].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"picture"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.h4,{id:s[31].id,children:s[31].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"sub"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,a.jsx)(e.hr,{}),"\n",(0,a.jsx)(e.h2,{id:s[32].id,children:s[32].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"default"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"<"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"P"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:">(options): OAuthConfig"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"<"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"P"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:">"})]})})}),"\n",(0,a.jsx)(e.p,{children:"Add Slack login to your page."}),"\n",(0,a.jsx)(e.h3,{id:s[33].id,children:s[33].value}),"\n",(0,a.jsx)(e.h4,{id:s[34].id,children:s[34].value}),"\n",(0,a.jsx)(e.pre,{tabIndex:"0","data-language":"plaintext","data-word-wrap":"","data-copy":"",children:(0,a.jsx)(e.code,{children:(0,a.jsx)(e.span,{children:(0,a.jsx)(e.span,{children:"https://example.com/api/auth/callback/slack"})})})}),"\n",(0,a.jsx)(e.h4,{id:s[35].id,children:s[35].value}),"\n",(0,a.jsx)(e.pre,{icon:t.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,a.jsxs)(e.code,{children:[(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"import"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" { Auth } "}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"from"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:' "@auth/core"'})]}),"\n",(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"import"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" Slack "}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"from"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:' "@auth/core/providers/slack"'})]}),"\n",(0,a.jsx)(e.span,{children:" "}),"\n",(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"const"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:" request"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:" ="}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:" new"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:" Request"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"(origin)"})]}),"\n",(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"const"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:" response"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:" ="}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:" await"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:" Auth"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"(request, {"})]}),"\n",(0,a.jsx)(e.span,{children:(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"  providers: ["})}),"\n",(0,a.jsxs)(e.span,{children:[(0,a.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"    Slack"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"({ clientId: "}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"SLACK_CLIENT_ID"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:", clientSecret: "}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"SLACK_CLIENT_SECRET"}),(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" }),"})]}),"\n",(0,a.jsx)(e.span,{children:(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"  ],"})}),"\n",(0,a.jsx)(e.span,{children:(0,a.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"})"})})]})}),"\n",(0,a.jsx)(e.h3,{id:s[36].id,children:s[36].value}),"\n",(0,a.jsxs)(e.ul,{children:["\n",(0,a.jsx)(e.li,{children:(0,a.jsx)(e.a,{href:"https://api.slack.com/authentication",children:"Slack Authentication documentation"})}),"\n",(0,a.jsx)(e.li,{children:(0,a.jsx)(e.a,{href:"https://api.slack.com/docs/sign-in-with-slack",children:"Sign-in with Slack"})}),"\n",(0,a.jsx)(e.li,{children:(0,a.jsx)(e.a,{href:"https://api.slack.com/apps",children:"Slack app console"})}),"\n"]}),"\n",(0,a.jsx)(e.h3,{id:s[37].id,children:s[37].value}),"\n",(0,a.jsxs)(e.p,{children:["By default, Auth.js assumes that the Slack provider is\nbased on the ",(0,a.jsx)(e.a,{href:"https://openid.net/specs/openid-connect-core-1_0.html",children:"Open ID Connect"})," specification."]}),"\n",(0,a.jsx)(n.U,{type:"error",children:(0,a.jsxs)(e.p,{children:["Slack requires that the redirect URL of your app uses https, even for local development.\nAn easy workaround for this is using a service like ",(0,a.jsx)(e.a,{href:"https://ngrok.com/",children:"ngrok"})," that creates a secure tunnel to your app, using https. Remember to set the url as ",(0,a.jsx)(e.code,{children:"NEXTAUTH_URL"})," as well."]})}),"\n",(0,a.jsx)(n.U,{type:"default",children:(0,a.jsxs)(e.p,{children:["The Slack provider comes with a ",(0,a.jsx)(e.a,{href:"https://github.com/nextauthjs/next-auth/blob/main/packages/core/src/providers/slack.ts",children:"default configuration"}),".\nTo override the defaults for your use case, check out ",(0,a.jsx)(e.a,{href:"https://authjs.dev/guides/configuring-oauth-providers",children:"customizing a built-in OAuth provider"}),"."]})}),"\n",(0,a.jsxs)(n.U,{type:"info",children:[(0,a.jsxs)(e.p,{children:[(0,a.jsx)(e.strong,{children:(0,a.jsx)(e.strong,{children:"Disclaimer"})})," If you think you found a bug in the default configuration, you can ",(0,a.jsx)(e.a,{href:"https://authjs.dev/new/provider-issue",children:"open an issue"}),"."]}),(0,a.jsxs)(e.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,a.jsx)(e.a,{href:"https://authjs.dev/new/github-discussions",children:"Discussions"}),"."]})]}),"\n",(0,a.jsx)(e.h3,{id:s[38].id,children:s[38].value}),"\n",(0,a.jsxs)(e.table,{children:[(0,a.jsx)(e.thead,{children:(0,a.jsx)(e.tr,{children:(0,a.jsx)(e.th,{style:{textAlign:"left"},children:"Type parameter"})})}),(0,a.jsx)(e.tbody,{children:(0,a.jsx)(e.tr,{children:(0,a.jsxs)(e.td,{style:{textAlign:"left"},children:[(0,a.jsx)(e.code,{children:"P"})," extends ",(0,a.jsx)(e.a,{href:"slack#slackprofile",children:(0,a.jsx)(e.code,{children:"SlackProfile"})})]})})})]}),"\n",(0,a.jsx)(e.h3,{id:s[39].id,children:s[39].value}),"\n",(0,a.jsxs)(e.table,{children:[(0,a.jsx)(e.thead,{children:(0,a.jsxs)(e.tr,{children:[(0,a.jsx)(e.th,{style:{textAlign:"left"},children:"Parameter"}),(0,a.jsx)(e.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(e.tbody,{children:(0,a.jsxs)(e.tr,{children:[(0,a.jsx)(e.td,{style:{textAlign:"left"},children:(0,a.jsx)(e.code,{children:"options"})}),(0,a.jsxs)(e.td,{style:{textAlign:"left"},children:[(0,a.jsx)(e.a,{href:"../providers#oauthuserconfigprofile",children:(0,a.jsx)(e.code,{children:"OAuthUserConfig"})}),"<",(0,a.jsx)(e.code,{children:"P"}),">"]})]})})]}),"\n",(0,a.jsx)(e.h3,{id:s[40].id,children:s[40].value}),"\n",(0,a.jsxs)(e.p,{children:[(0,a.jsx)(e.a,{href:"../providers#oauthconfigprofile",children:(0,a.jsx)(e.code,{children:"OAuthConfig"})}),"<",(0,a.jsx)(e.code,{children:"P"}),">"]})]})},"/reference/core/providers/slack",{filePath:"pages/reference/core/providers/slack.mdx",pageMap:d.v,frontMatter:{},title:"providers/slack"},"undefined"==typeof RemoteContent?r:RemoteContent.useTOC)},82732:function(i,s,e){"use strict";e.d(s,{U:function(){return t}});var a=e(651),h=e(69577),d=e(74661);let l={default:"\uD83D\uDCA1",error:"\uD83D\uDEAB",info:(0,a.jsx)(d.AV,{className:"_mt-1"}),warning:"⚠️"},n={default:(0,h.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,h.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,h.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,h.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 t({children:i,type:s="default",emoji:e=l[s]}){return(0,a.jsxs)("div",{className:(0,h.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",n[s]),children:[(0,a.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:e}),(0,a.jsx)("div",{className:"_w-full _min-w-0 _leading-7",children:i})]})}}},function(i){i.O(0,[64464,46635,92888,49774,40179],function(){return i(i.s=58061)}),_N_E=i.O()}]);