(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[33694],{39898:function(i,s,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reference/core/providers/mastodon",function(){return e(51352)}])},51352:function(i,s,e){"use strict";e.r(s),e.d(s,{useTOC:function(){return h}});var n=e(651),d=e(64464),a=e(46635),t=e(19829),r=e(82732),l=e(74661);function h(i){return[{value:"MastodonProfile",id:"mastodonprofile",depth:2},{value:"Extends",id:"extends",depth:3},{value:"Properties",id:"properties",depth:3},{value:"acct",id:"acct",depth:4},{value:"avatar",id:"avatar",depth:4},{value:"avatar_static",id:"avatar_static",depth:4},{value:"bot",id:"bot",depth:4},{value:"created_at",id:"created_at",depth:4},{value:"display_name",id:"display_name",depth:4},{value:"followers_count",id:"followers_count",depth:4},{value:"following_count",id:"following_count",depth:4},{value:"header",id:"header",depth:4},{value:"header_static",id:"header_static",depth:4},{value:"id",id:"id",depth:4},{value:"last_status_at",id:"last_status_at",depth:4},{value:"locked",id:"locked",depth:4},{value:"note",id:"note",depth:4},{value:"statuses_count",id:"statuses_count",depth:4},{value:"url",id:"url",depth:4},{value:"username",id:"username",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,d.c)(function(i){let{toc:s=h(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,t.a)(),...i.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.h1,{children:"providers/mastodon"}),"\n",(0,n.jsxs)("div",{style:{backgroundColor:"#000",display:"flex",justifyContent:"space-between",color:"#fff",padding:16},children:[(0,n.jsxs)("span",{children:["Built-in ",(0,n.jsx)("b",{children:"Mastodon"})," integration."]}),(0,n.jsx)("a",{href:"https://mastodon.social",children:(0,n.jsx)("img",{style:{display:"block"},src:"https://authjs.dev/img/providers/mastodon.svg",height:"48",width:"48"})})]}),"\n",(0,n.jsx)(e.h2,{id:s[0].id,children:s[0].value}),"\n",(0,n.jsx)(e.h3,{id:s[1].id,children:s[1].value}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.a,{href:"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",children:(0,n.jsx)(e.code,{children:"Record"})}),"<",(0,n.jsx)(e.code,{children:"string"}),", ",(0,n.jsx)(e.code,{children:"any"}),">"]}),"\n"]}),"\n",(0,n.jsx)(e.h3,{id:s[2].id,children:s[2].value}),"\n",(0,n.jsx)(e.h4,{id:s[3].id,children:s[3].value}),"\n",(0,n.jsx)(e.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"acct"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,n.jsx)(e.h4,{id:s[4].id,children:s[4].value}),"\n",(0,n.jsx)(e.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"avatar"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,n.jsx)(e.h4,{id:s[5].id,children:s[5].value}),"\n",(0,n.jsx)(e.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"avatar_static"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,n.jsx)(e.h4,{id:s[6].id,children:s[6].value}),"\n",(0,n.jsx)(e.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"bot"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": boolean;"})]})})}),"\n",(0,n.jsx)(e.h4,{id:s[7].id,children:s[7].value}),"\n",(0,n.jsx)(e.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"created_at"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,n.jsx)(e.h4,{id:s[8].id,children:s[8].value}),"\n",(0,n.jsx)(e.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"display_name"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,n.jsx)(e.h4,{id:s[9].id,children:s[9].value}),"\n",(0,n.jsx)(e.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"followers_count"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": number;"})]})})}),"\n",(0,n.jsx)(e.h4,{id:s[10].id,children:s[10].value}),"\n",(0,n.jsx)(e.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"following_count"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": number;"})]})})}),"\n",(0,n.jsx)(e.h4,{id:s[11].id,children:s[11].value}),"\n",(0,n.jsx)(e.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"header"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,n.jsx)(e.h4,{id:s[12].id,children:s[12].value}),"\n",(0,n.jsx)(e.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"header_static"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,n.jsx)(e.h4,{id:s[13].id,children:s[13].value}),"\n",(0,n.jsx)(e.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"id"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,n.jsx)(e.h4,{id:s[14].id,children:s[14].value}),"\n",(0,n.jsx)(e.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"last_status_at"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": "}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"null"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:" |"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" string;"})]})})}),"\n",(0,n.jsx)(e.h4,{id:s[15].id,children:s[15].value}),"\n",(0,n.jsx)(e.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"locked"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": boolean;"})]})})}),"\n",(0,n.jsx)(e.h4,{id:s[16].id,children:s[16].value}),"\n",(0,n.jsx)(e.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"note"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,n.jsx)(e.h4,{id:s[17].id,children:s[17].value}),"\n",(0,n.jsx)(e.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"statuses_count"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": number;"})]})})}),"\n",(0,n.jsx)(e.h4,{id:s[18].id,children:s[18].value}),"\n",(0,n.jsx)(e.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"url"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,n.jsx)(e.h4,{id:s[19].id,children:s[19].value}),"\n",(0,n.jsx)(e.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"username"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": string;"})]})})}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h2,{id:s[20].id,children:s[20].value}),"\n",(0,n.jsx)(e.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"default"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"<"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"P"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:">(options): OAuthConfig"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"<"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"P"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:">"})]})})}),"\n",(0,n.jsx)(e.p,{children:"Add Mastodon login to your page."}),"\n",(0,n.jsx)(e.h3,{id:s[21].id,children:s[21].value}),"\n",(0,n.jsx)(e.h4,{id:s[22].id,children:s[22].value}),"\n",(0,n.jsx)(e.pre,{tabIndex:"0","data-language":"plaintext","data-word-wrap":"","data-copy":"",children:(0,n.jsx)(e.code,{children:(0,n.jsx)(e.span,{children:(0,n.jsx)(e.span,{children:"https://example.com/api/auth/callback/mastodon"})})})}),"\n",(0,n.jsx)(e.h4,{id:s[23].id,children:s[23].value}),"\n",(0,n.jsx)(e.pre,{icon:l.KP,tabIndex:"0","data-language":"ts","data-word-wrap":"","data-copy":"",children:(0,n.jsxs)(e.code,{children:[(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"import"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" { Auth } "}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"from"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:' "@auth/core"'})]}),"\n",(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"import"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" Mastodon "}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"from"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:' "@auth/core/providers/mastodon"'})]}),"\n",(0,n.jsx)(e.span,{children:" "}),"\n",(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"const"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:" request"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:" ="}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:" new"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:" Request"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"(origin)"})]}),"\n",(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"const"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:" response"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:" ="}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:" await"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:" Auth"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"(request, {"})]}),"\n",(0,n.jsx)(e.span,{children:(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"  providers: ["})}),"\n",(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"    Mastodon"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"({"})]}),"\n",(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"      clientId: "}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"MASTODON_CLIENT_ID"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:","})]}),"\n",(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"      clientSecret: "}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"MASTODON_CLIENT_SECRET"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:","})]}),"\n",(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"      issuer: "}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"MASTODON_ISSUER"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:","})]}),"\n",(0,n.jsx)(e.span,{children:(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"    }),"})}),"\n",(0,n.jsx)(e.span,{children:(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"  ],"})}),"\n",(0,n.jsx)(e.span,{children:(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"})"})})]})}),"\n",(0,n.jsx)(e.h3,{id:s[24].id,children:s[24].value}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:(0,n.jsx)(e.a,{href:"https://docs.joinmastodon.org/client/token/",children:"Mastodon OAuth documentation"})}),"\n",(0,n.jsx)(e.li,{children:(0,n.jsx)(e.a,{href:"https://mastodon.social/settings/applications",children:"Mastodon OAuth Configuration"})}),"\n"]}),"\n",(0,n.jsx)(e.h3,{id:s[25].id,children:s[25].value}),"\n",(0,n.jsxs)(e.p,{children:["By default, Auth.js assumes that the Mastodon provider is\nbased on the ",(0,n.jsx)(e.a,{href:"https://www.rfc-editor.org/rfc/rfc6749.html",children:"OAuth 2"})," specification."]}),"\n",(0,n.jsxs)(e.p,{children:["Due to Mastodons infrastructure beeing a Fediverse you have to define the ",(0,n.jsx)(e.code,{children:"issuer"})," you want to connect to."]}),"\n",(0,n.jsx)(r.U,{type:"default",children:(0,n.jsxs)(e.p,{children:["The Mastodon provider comes with a ",(0,n.jsx)(e.a,{href:"https://github.com/nextauthjs/next-auth/blob/main/packages/core/src/providers/mastodon.ts",children:"default configuration"}),".\nTo override the defaults for your use case, check out ",(0,n.jsx)(e.a,{href:"https://authjs.dev/guides/configuring-oauth-providers",children:"customizing a built-in OAuth provider"}),"."]})}),"\n",(0,n.jsxs)(r.U,{type:"info",children:[(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:(0,n.jsx)(e.strong,{children:"Disclaimer"})})," If you think you found a bug in the default configuration, you can ",(0,n.jsx)(e.a,{href:"https://authjs.dev/new/provider-issue",children:"open an issue"}),"."]}),(0,n.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,n.jsx)(e.a,{href:"https://authjs.dev/new/github-discussions",children:"Discussions"}),"."]})]}),"\n",(0,n.jsx)(e.h3,{id:s[26].id,children:s[26].value}),"\n",(0,n.jsxs)(e.table,{children:[(0,n.jsx)(e.thead,{children:(0,n.jsx)(e.tr,{children:(0,n.jsx)(e.th,{style:{textAlign:"left"},children:"Type parameter"})})}),(0,n.jsx)(e.tbody,{children:(0,n.jsx)(e.tr,{children:(0,n.jsxs)(e.td,{style:{textAlign:"left"},children:[(0,n.jsx)(e.code,{children:"P"})," extends ",(0,n.jsx)(e.a,{href:"mastodon#mastodonprofile",children:(0,n.jsx)(e.code,{children:"MastodonProfile"})})]})})})]}),"\n",(0,n.jsx)(e.h3,{id:s[27].id,children:s[27].value}),"\n",(0,n.jsxs)(e.table,{children:[(0,n.jsx)(e.thead,{children:(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.th,{style:{textAlign:"left"},children:"Parameter"}),(0,n.jsx)(e.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(e.tbody,{children:(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.td,{style:{textAlign:"left"},children:(0,n.jsx)(e.code,{children:"options"})}),(0,n.jsxs)(e.td,{style:{textAlign:"left"},children:[(0,n.jsx)(e.a,{href:"../providers#oauthuserconfigprofile",children:(0,n.jsx)(e.code,{children:"OAuthUserConfig"})}),"<",(0,n.jsx)(e.code,{children:"P"}),"> & { ",(0,n.jsx)(e.code,{children:"issuer"}),": ",(0,n.jsx)(e.code,{children:"string"}),"; }"]})]})})]}),"\n",(0,n.jsx)(e.h3,{id:s[28].id,children:s[28].value}),"\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.a,{href:"../providers#oauthconfigprofile",children:(0,n.jsx)(e.code,{children:"OAuthConfig"})}),"<",(0,n.jsx)(e.code,{children:"P"}),">"]})]})},"/reference/core/providers/mastodon",{filePath:"pages/reference/core/providers/mastodon.mdx",pageMap:a.v,frontMatter:{},title:"providers/mastodon"},"undefined"==typeof RemoteContent?h:RemoteContent.useTOC)},82732:function(i,s,e){"use strict";e.d(s,{U:function(){return l}});var n=e(651),d=e(69577),a=e(74661);let t={default:"\uD83D\uDCA1",error:"\uD83D\uDEAB",info:(0,n.jsx)(a.AV,{className:"_mt-1"}),warning:"⚠️"},r={default:(0,d.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,d.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,d.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,d.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:i,type:s="default",emoji:e=t[s]}){return(0,n.jsxs)("div",{className:(0,d.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",r[s]),children:[(0,n.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,n.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=39898)}),_N_E=i.O()}]);