From 0d79b922a83a8428bdbc4855a382ee084f0ff4d7 Mon Sep 17 00:00:00 2001 From: nomadics9 Date: Thu, 13 Jun 2024 03:34:33 +0300 Subject: [PATCH] feat: Generalized oAuth2 you can now just pass provider name on button insead of hardcoing google as provider --- src/lib/login.svelte | 97 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 85 insertions(+), 12 deletions(-) diff --git a/src/lib/login.svelte b/src/lib/login.svelte index 5ff6805..ef422a7 100644 --- a/src/lib/login.svelte +++ b/src/lib/login.svelte @@ -1,12 +1,14 @@ -{#if $currentUser} -

Signed in as {$currentUser.name}

- {$currentUser.name} - - -{:else} -

Please Login

- +{#if $currentUser && !loading} +

Signed in as {getName()}

+ {$currentUser.name} + +{/if} +{#if !$currentUser} +

Please Login

+ + {/if}