Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: added token expiry explanation and link to github code

awaliasba3ca87e710a
diff --git a/examples/auth-vanilla-js/.gitignore b/examples/auth-vanilla-js/.gitignore
index a261f291755..89e1e946159 100644
--- a/examples/auth-vanilla-js/.gitignore
+++ b/examples/auth-vanilla-js/.gitignore
@@ -1 +1,3 @@
dist/*
+
+.vercel
diff --git a/examples/auth-vanilla-js/index.html b/examples/auth-vanilla-js/index.html
index a2db981881a..770c6eeddd1 100644
--- a/examples/auth-vanilla-js/index.html
+++ b/examples/auth-vanilla-js/index.html
@@ -12,6 +12,9 @@
<div class='section'>
<h1>Supabase Auth Example</h1>
</div>
+ <div class='section'>
+ <a href="https://github.com/supabase/supabase/tree/master/examples/auth-vanilla-js">View the code on GitHub</a>
+ </div>
<div class='section'>
<form id='sign-up'>
<h3>Sign Up</h3>
@@ -31,9 +34,9 @@
<div class='section'>
<form id='validate'>
<h3>Access Token</h3>
- <input readonly=readonly type='text' id='access-token' />
+ <input readonly=readonly type='text' id='access-token' /> <small>Default expiry is 60 minutes</small>
<h3>Refresh Token</h3>
- <input readonly=readonly type='text' id='refresh-token' />
+ <input readonly=readonly type='text' id='refresh-token' /> <small>Supabase-js will use this to automatically fetch a new accessToken for you every 60 mins whilst the client is running</small>
</form>
</div>
<div class='section'>