Skip to content

Commit

Permalink
fix(ios): fix login (#9011)
Browse files Browse the repository at this point in the history
  • Loading branch information
EYHN committed Dec 4, 2024
1 parent 83c7dee commit b637a62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/frontend/apps/ios/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { router } from '@affine/core/mobile/router';
import { configureCommonModules } from '@affine/core/modules';
import {
AuthService,
DefaultServerService,
ValidatorProvider,
WebSocketAuthProvider,
} from '@affine/core/modules/cloud';
Expand Down Expand Up @@ -131,7 +132,9 @@ CapacitorApp.addListener('appUrlOpen', ({ url }) => {
return;
}

const authService = frameworkProvider.get(AuthService);
const authService = frameworkProvider
.get(DefaultServerService)
.server.scope.get(AuthService);
if (method === 'oauth') {
authService
.signInOauth(payload.code, payload.state, payload.provider)
Expand Down

0 comments on commit b637a62

Please sign in to comment.