From 0dd72a700bb60233c19e3fd7cfebacbfeacb2f84 Mon Sep 17 00:00:00 2001 From: dannykng Date: Wed, 5 Oct 2022 17:54:31 -0700 Subject: [PATCH] Fix broken link --- apps/reference/docs/learn/auth-deep-dive/policies.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/reference/docs/learn/auth-deep-dive/policies.md b/apps/reference/docs/learn/auth-deep-dive/policies.md index 12a4ac8ad0d..32c02e223ea 100644 --- a/apps/reference/docs/learn/auth-deep-dive/policies.md +++ b/apps/reference/docs/learn/auth-deep-dive/policies.md @@ -82,13 +82,13 @@ For the curious, try heading to the SQL editor and querying: select * from auth.users; ``` -If supabase-js is loaded on your site (in this case http://localhost:3000) then it will automatically pluck the access_token out of the URL and initiate a session. You can check the [session()](../../reference/javascript/auth-session) method to see if there is a valid session: +If supabase-js is loaded on your site (in this case http://localhost:3000) it automatically plucks the `access_token` out of the URL and initiates a session. You can retrieve the [session](/docs/reference/javascript/auth-getsession) to see if there is a valid session: ```jsx -console.log(supabase.auth.session()) +console.log(supabase.auth.getSession()) ``` -Now that we can use methods like `supabase.auth.signIn({ email, password})` to issue JWTs to users we want to start fetching resources specific to that user. So let's make some. Go to the SQL editor and run: +Now that we can use methods to issue JWTs to users, we want to start fetching resources specific to that user. So let's make some. Go to the SQL editor and run: ```sql create table my_scores (