( provider: string, )
| 163 | }; |
| 164 | |
| 165 | export 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 | }; |
no test coverage detected