TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Supabase Studio: AI Assistant and User Impersonation

7 pointsby jacobwgover 1 year ago

1 comment

kiwicoppleover 1 year ago
hey hn, supabase ceo here<p>there are a few features in this release. i&#x27;m sure the AI Assistant will get a lot of interest, but the one that I think is more technically interesting is the &quot;user impersonation&quot;:<p>Supabase Auth leverages Postgres roles for authorization. We have 2 important roles: `anon` and `authenticated`. After a user is logged in, a JWT is minted like this:<p><pre><code> { &quot;sub&quot;: &quot;348b-some-user-uuid&quot;, &#x2F;&#x2F; the ID of the user &quot;role&quot;: &quot;authenticated&quot;, &#x2F;&#x2F; the Postgres role &quot;iss&quot;: &quot;supabase&quot; &#x2F;&#x2F; the issuer of the JWT &quot;exp&quot;: 1445385600, &#x2F;&#x2F; the time the JWT will expires } </code></pre> we can use this feature in the dashboard to &quot;impersonate&quot; a user. This is especially helpful when you&#x27;re testing Row Level Security.<p>we also rolled out wider support for Postgres Roles and a new Realtime inspector where you can &quot;observe&quot; messages on any of the Realtime channels