File tree Expand file tree Collapse file tree 1 file changed +12
-17
lines changed Expand file tree Collapse file tree 1 file changed +12
-17
lines changed Original file line number Diff line number Diff line change @@ -74,23 +74,18 @@ export const configuredProviders = socialProviderList.reduce<
74
74
return acc ;
75
75
} , { } ) ;
76
76
77
- export const socialProvidersPlugin = ( ) => {
78
- return {
79
- id : "social-providers-plugin" ,
80
- endpoints : {
81
- getSocialProviders : createAuthEndpoint (
82
- "/social-providers" ,
83
- {
84
- method : "GET" ,
85
- } ,
86
- async ( ctx ) => {
87
- const providers = ctx . context . socialProviders . map ( p => p . name . toLowerCase ( ) ) ;
88
- return ctx . json ( providers ) ;
89
- } ,
90
- ) ,
91
- } ,
92
- } ;
93
- } ;
77
+ export const socialProvidersPlugin = ( ) => ( {
78
+ id : "social-providers-plugin" ,
79
+ endpoints : {
80
+ getSocialProviders : createAuthEndpoint (
81
+ "/social-providers" ,
82
+ {
83
+ method : "GET" ,
84
+ } ,
85
+ async ( ctx ) => ctx . json ( ctx . context . socialProviders . map ( p => p . name . toLowerCase ( ) ) ) ,
86
+ ) ,
87
+ } ,
88
+ } ) ;
94
89
95
90
export const initAuth = ( db : dbClient ) => {
96
91
return betterAuth ( {
You can’t perform that action at this time.
0 commit comments