The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: Add getSession explanation to S3 auth (#43595)
Chris Chinchilla2d68b69c7609
diff --git a/apps/docs/content/guides/storage/s3/authentication.mdx b/apps/docs/content/guides/storage/s3/authentication.mdxindex 0795a2e005e..68d7fe1f62f 100644--- a/apps/docs/content/guides/storage/s3/authentication.mdx+++ b/apps/docs/content/guides/storage/s3/authentication.mdx@@ -84,6 +84,12 @@ To authenticate with S3 using a Session Token, use the following credentials:For example, using the `aws-sdk` library:+<Admonition type="note">++Typically we advise against using `getSession`, because the session is read from local storage and you can't trust its claims for auth decisions. In this case however, the code only needs the raw access token string to forward as a credential to the S3 service, which validates the token server-side. Since no client-side auth decision is made based on the session data, `getSession` is appropriate here.++</Admonition>+```javascriptimport { S3Client } from '@aws-sdk/client-s3'