( provider: string, )
| 170 | }; |
| 171 | |
| 172 | export 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 | }; |
no test coverage detected