Edit: /tmp/tsx-0/17887-cab34fbce9e05556e15e266478d7917f7d4ec967 (2930B)
{"code":"__filename=\"/opt/canhelp/node_modules/better-auth/dist/plugins/generic-oauth/providers/slack.mjs\";(()=>{\nvar __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __name=(target,value)=>__defProp(target,\"name\",{value,configurable:true});var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from===\"object\"||typeof from===\"function\"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},\"__esModule\",{value:true}),mod);var slack_exports={};__export(slack_exports,{slack:()=>slack});module.exports=__toCommonJS(slack_exports);var import_fetch=require(\"@better-fetch/fetch\");function slack(options){const defaultScopes=[\"openid\",\"profile\",\"email\"];const getUserInfo=__name(async tokens=>{const{data:profile,error}=await(0,import_fetch.betterFetch)(\"https://slack.com/api/openid.connect.userInfo\",{headers:{Authorization:`Bearer ${tokens.accessToken}`}});if(error||!profile)return null;return{id:profile[\"https://slack.com/user_id\"]??profile.sub,name:profile.name,email:profile.email,image:profile.picture??profile[\"https://slack.com/user_image_512\"],emailVerified:profile.email_verified??false}},\"getUserInfo\");return{providerId:\"slack\",authorizationUrl:\"https://slack.com/openid/connect/authorize\",tokenUrl:\"https://slack.com/api/openid.connect.token\",userInfoUrl:\"https://slack.com/api/openid.connect.userInfo\",clientId:options.clientId,clientSecret:options.clientSecret,scopes:options.scopes??defaultScopes,redirectURI:options.redirectURI,pkce:options.pkce,disableImplicitSignUp:options.disableImplicitSignUp,disableSignUp:options.disableSignUp,overrideUserInfo:options.overrideUserInfo,getUserInfo}}__name(slack,\"slack\");0&&(module.exports={slack});\n})()\n","warnings":[],"map":{"version":3,"mappings":";suBAAA,2HAA4B,+BAwB5B,SAAS,MAAM,QAAS,CACvB,MAAM,cAAgB,CACrB,SACA,UACA,OACD,EACA,MAAM,YAAc,aAAO,QAAW,CACrC,KAAM,CAAE,KAAM,QAAS,KAAM,EAAI,QAAM,0BAAY,gDAAiD,CAAE,QAAS,CAAE,cAAe,UAAU,OAAO,WAAW,EAAG,CAAE,CAAC,EAClK,GAAI,OAAS,CAAC,QAAS,OAAO,KAC9B,MAAO,CACN,GAAI,QAAQ,2BAA2B,GAAK,QAAQ,IACpD,KAAM,QAAQ,KACd,MAAO,QAAQ,MACf,MAAO,QAAQ,SAAW,QAAQ,kCAAkC,EACpE,cAAe,QAAQ,gBAAkB,KAC1C,CACD,EAVoB,eAWpB,MAAO,CACN,WAAY,QACZ,iBAAkB,6CAClB,SAAU,6CACV,YAAa,gDACb,SAAU,QAAQ,SAClB,aAAc,QAAQ,aACtB,OAAQ,QAAQ,QAAU,cAC1B,YAAa,QAAQ,YACrB,KAAM,QAAQ,KACd,sBAAuB,QAAQ,sBAC/B,cAAe,QAAQ,cACvB,iBAAkB,QAAQ,iBAC1B,WACD,CACD,CAhCS","names":[],"ignoreList":[],"sources":["/opt/canhelp/node_modules/better-auth/dist/plugins/generic-oauth/providers/slack.mjs"],"sourcesContent":[null]}}