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

Function iosNativeAuth

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

Source from the content-addressed store, hash-verified

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

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