File tree 2 files changed +5
-16
lines changed
2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ trait HasSocialite
15
15
*/
16
16
public function getAcceptedProviders (): array
17
17
{
18
- return ['github ' , ' twitter ' ];
18
+ return ['github ' ];
19
19
}
20
20
21
21
protected function getSocialiteUser (string $ provider ): User
@@ -31,18 +31,15 @@ protected function getAuthorizationFirst(string $provider): RedirectResponse|\Sy
31
31
$ fields = empty (config ("services. {$ provider }.fields " )) ? false : config ("services. {$ provider }.fields " );
32
32
33
33
if ($ scopes ) {
34
- // @phpstan-ignore-next-line
35
- $ socialite ->scopes ($ scopes );
34
+ $ socialite ->scopes ($ scopes ); // @phpstan-ignore-line
36
35
}
37
36
38
37
if ($ with ) {
39
- // @phpstan-ignore-next-line
40
- $ socialite ->with ($ with );
38
+ $ socialite ->with ($ with ); // @phpstan-ignore-line
41
39
}
42
40
43
41
if ($ fields ) {
44
- // @phpstan-ignore-next-line
45
- $ socialite ->fields ($ fields );
42
+ $ socialite ->fields ($ fields ); // @phpstan-ignore-line
46
43
}
47
44
48
45
return $ socialite ->redirect ();
Original file line number Diff line number Diff line change 10
10
</div >
11
11
</div >
12
12
13
- <div class =" mt-6 grid grid-cols-2 gap-2 " >
13
+ <div class =" mt-6" >
14
14
<div >
15
15
<x-default-button :link =" route('social.auth', ['provider' => 'github'])" class =" w-full font-normal" >
16
16
<span class =" sr-only" >{{ __ (' Continuer avec Github' ) } } </span >
17
17
<x-icon .github class =" w-5 h-5 mr-2 -ml-1" />
18
18
Github
19
19
</x-default-button >
20
20
</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 >
29
21
</div >
30
22
</div >
You can’t perform that action at this time.
0 commit comments