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

Function iosNativeAuth

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

Source from the content-addressed store, hash-verified

163};
164
165export const iosNativeAuth = async (
166 provider: string,
167): Promise<NativeAuthResponse | undefined> => {
168 const promise = promisifyEventListener<
169 NativeAuthResponse | undefined,
170 NativeAuthResponse | undefined
171 >('native-auth', (event) => event.detail);
172 postWebKitMessage(WebKitMessageHandlers.NativeAuth, provider);
173 return promise;
174};

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