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
@@ -114,7 +114,7 @@ export class AuthService extends Service {
provider: OAuthProviderType,
client: string,
/** @deprecated*/ redirectUrl?: string
) {
): Promise<Record<string, string>> {
this.setClientNonce();
try {
const res = await this.fetchService.fetch('/api/oauth/preflight', {
@@ -130,9 +130,7 @@ export class AuthService extends Service {
},
});
let { url } = await res.json();
return url as string;
return await res.json();
} catch (e) {
track.$.$.auth.signInFail({
method: 'oauth',