mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-24 01:42:55 +08:00
feat(core): support apple sign in (#12424)
This commit is contained in:
@@ -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;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user