feat(core): support apple sign in (#12424)

This commit is contained in:
liuyi
2025-05-23 15:27:27 +08:00
committed by GitHub
parent a96cd3eb0a
commit 41781902f6
22 changed files with 629 additions and 260 deletions

View File

@@ -6,7 +6,7 @@ import {
type LoaderFunction,
redirect,
useLoaderData,
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
// oxlint-disable-next-line @typescript-eslint/no-restricted-imports
useNavigate,
} from 'react-router-dom';
import { z } from 'zod';
@@ -67,7 +67,7 @@ export const Component = () => {
useEffect(() => {
auth
.oauthPreflight(data.provider, data.client, data.redirectUri)
.then(url => {
.then(({ url }) => {
// this is the url of oauth provider auth page, can't navigate with react-router
location.href = url;
})