Skip to content

Commit b662d73

Browse files
authored
Merge pull request #69 from teacoder-team/dev
perf(auth): unblock sso ux
2 parents 61f7010 + 0c3023e commit b662d73

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

src/components/auth/auth-social.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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}

src/components/auth/passkey-login-button.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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
// )

0 commit comments

Comments
 (0)