File tree Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ trait HasSocialite
1515 */
1616 public function getAcceptedProviders (): array
1717 {
18- return ['github ' , ' twitter ' ];
18+ return ['github ' ];
1919 }
2020
2121 protected function getSocialiteUser (string $ provider ): User
@@ -31,18 +31,15 @@ protected function getAuthorizationFirst(string $provider): RedirectResponse|\Sy
3131 $ fields = empty (config ("services. {$ provider }.fields " )) ? false : config ("services. {$ provider }.fields " );
3232
3333 if ($ scopes ) {
34- // @phpstan-ignore-next-line
35- $ socialite ->scopes ($ scopes );
34+ $ socialite ->scopes ($ scopes ); // @phpstan-ignore-line
3635 }
3736
3837 if ($ with ) {
39- // @phpstan-ignore-next-line
40- $ socialite ->with ($ with );
38+ $ socialite ->with ($ with ); // @phpstan-ignore-line
4139 }
4240
4341 if ($ fields ) {
44- // @phpstan-ignore-next-line
45- $ socialite ->fields ($ fields );
42+ $ socialite ->fields ($ fields ); // @phpstan-ignore-line
4643 }
4744
4845 return $ socialite ->redirect ();
Original file line number Diff line number Diff line change 1010 </div >
1111 </div >
1212
13- <div class =" mt-6 grid grid-cols-2 gap-2 " >
13+ <div class =" mt-6" >
1414 <div >
1515 <x-default-button :link =" route('social.auth', ['provider' => 'github'])" class =" w-full font-normal" >
1616 <span class =" sr-only" >{{ __ (' Continuer avec Github' ) } } </span >
1717 <x-icon .github class =" w-5 h-5 mr-2 -ml-1" />
1818 Github
1919 </x-default-button >
2020 </div >
21-
22- <div >
23- <x-default-button :link =" route('social.auth', ['provider' => 'twitter'])" class =" w-full font-normal" >
24- <span class =" sr-only" >{{ __ (' Continuer avec Twitter' ) } } </span >
25- <x-icon .twitter class =" w-5 h-5 mr-2 -ml-1 text-[#1E9DEA]" />
26- Twitter
27- </x-default-button >
28- </div >
2921 </div >
3022</div >
You can’t perform that action at this time.
0 commit comments