refactoring step1 GoogleAuth

This commit is contained in:
Samuel Andert
2023-07-24 17:41:44 +02:00
parent 0e6a956511
commit 50b0fca034
3 changed files with 85 additions and 84 deletions

View File

@ -0,0 +1,5 @@
import { LitAuthClient, BaseProvider, GoogleProvider, ProviderType } from '@lit-protocol/lit-auth-client';
export function initializeProvider(litAuthClient: typeof LitAuthClient): BaseProvider {
return litAuthClient.initProvider<GoogleProvider>(ProviderType.Google);
}