MCPcopy Create free account
hub / github.com/dailydotdev/apps / iosNativeAuth

Function iosNativeAuth

packages/shared/src/lib/auth.ts:172–181  ·  view source on GitHub ↗
(
  provider: string,
)

Source from the content-addressed store, hash-verified

170};
171
172export const iosNativeAuth = async (
173 provider: string,
174): Promise<NativeAuthResponse | undefined> => {
175 const promise = promisifyEventListener<
176 NativeAuthResponse | undefined,
177 NativeAuthResponse | undefined
178 >('native-auth', (event) => event.detail);
179 postWebKitMessage(WebKitMessageHandlers.NativeAuth, provider);
180 return promise;
181};

Callers 3

onProviderClickFunction · 0.90
useLoginFunction · 0.90
onSocialRegistrationFunction · 0.90

Calls 2

promisifyEventListenerFunction · 0.90
postWebKitMessageFunction · 0.90

Tested by

no test coverage detected