( provider: string, )
| 151 | }; |
| 152 | |
| 153 | export 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 | }; |
no test coverage detected