File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,11 +17,7 @@ export function AuthSocial() {
1717 const router = useRouter ( )
1818
1919 const { data, isLoading } = useGetAvailableSsoProviders ( )
20- const {
21- data : fingerprint ,
22- isLoading : isFpLoading ,
23- error : fpError
24- } = useFingerprint ( )
20+ const { data : fingerprint , error : fpError } = useFingerprint ( )
2521
2622 const { mutate, isPending } = useMutation ( {
2723 mutationKey : [ 'oauth login' ] ,
@@ -55,7 +51,7 @@ export function AuthSocial() {
5551 return (
5652 < div className = 'flex flex-col gap-4' >
5753 < div className = 'grid w-full grid-cols-4 gap-4' >
58- { isLoading || isFpLoading
54+ { isLoading
5955 ? Array . from ( { length : 4 } ) . map ( ( _ , i ) => (
6056 < Skeleton
6157 key = { i }
Original file line number Diff line number Diff line change @@ -15,10 +15,8 @@ export function PasskeyLoginButton() {
1515 mutationFn : async ( ) => {
1616 setIsLoading ( true )
1717
18- // 1. Получаем challenge от сервера
1918 // const options = await generateLoginOptions()
2019
21- // 2. Преобразуем поле challenge и credentialID
2220 // options.challenge = Uint8Array.from(atob(options.challenge), c =>
2321 // c.charCodeAt(0)
2422 // )
You can’t perform that action at this time.
0 commit comments