From 9eefddab4eb4733b8b10aa2991bb4ebbda158195 Mon Sep 17 00:00:00 2001 From: John Lombardo Date: Tue, 16 Feb 2021 12:40:53 +0800 Subject: [PATCH] Stop calling .user() like an async function The Typescript defs already warn that `supabase.auth.user()` is a synchronous function if it is called with `await` (and it doesn't cause errors) but I am starting to see tutorials propagating this error. --- web/spec/supabase.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml index be2414fa1b9..ca814adf393 100644 --- a/web/spec/supabase.yml +++ b/web/spec/supabase.yml @@ -322,7 +322,7 @@ pages: isSpotlight: true js: | ```js - const user = await supabase.auth.user() + const user = supabase.auth.user() ``` py: | ```py