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

Function iosNativeAuth

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

Source from the content-addressed store, hash-verified

150};
151
152export const iosNativeAuth = async (
153 provider: string,
154): Promise<NativeAuthResponse | undefined> => {
155 const promise = promisifyEventListener<
156 NativeAuthResponse | undefined,
157 NativeAuthResponse | undefined
158 >('native-auth', (event) => event.detail);
159 postWebKitMessage(WebKitMessageHandlers.NativeAuth, provider);
160 return promise;
161};

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